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

Dmitry Torokhov
2019-11-13T01:04:49Z

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