Re: [PATCH] [media] stk-webcam: Fix use after free on disconnect

2017-10-16 Thread Sakari Ailus
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

2017-09-22 Thread Dan Carpenter
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 --- Not tested but these bug reports seem surprisingly