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

From: Sakari Ailus
Date: Mon Oct 16 2017 - 10:13:39 EST


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 <andreyknvl@xxxxxxxxxx>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> ---
> Not tested but these bug reports seem surprisingly straight forward.
> Thanks Andrey!

Acked-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>

--
Sakari Ailus
sakari.ailus@xxxxxxxxxxxxxxx