Re: [PATCH] [media] stk-webcam: Fix use after free on disconnect
On Fri, Sep 22, 2017 at 04:48:41PM +0300, Dan Carpenter wrote: > We free the stk_camera device too early. It's allocate first in probe > and it should be freed last in stk_camera_disconnect(). > > Reported-by: Andrey Konovalov> Signed-off-by: Dan Carpenter
[PATCH] [media] stk-webcam: Fix use after free on disconnect
We free the stk_camera device too early. It's allocate first in probe and it should be freed last in stk_camera_disconnect(). Reported-by: Andrey KonovalovSigned-off-by: Dan Carpenter --- Not tested but these bug reports seem surprisingly