Re: [PATCH] Input: cyttsp4_core: fix use after free bug

From: Dmitry Torokhov
Date: Tue Nov 12 2019 - 20:04:49 EST


On Tue, Nov 05, 2019 at 02:46:19PM +0800, Pan Bian wrote:
> The device md->input is used after it is released. Setting the device
> data to NULL is unnecessary as the device is never used again. Instead,
> md->input should be assigned NULL to avoid accessing the freed memory
> accidently.

No, we are tearing up the device anyway, I'd leave it as it was, so I'll
drop this chunk and apply the rest.

Thank you.

--
Dmitry