[PATCH] Input: imx_sc_key - Fix memory corruption on unload
Dmitry Torokhov
dmitry.torokhov at gmail.com
Tue Nov 4 10:58:11 PST 2025
On Sat, Nov 01, 2025 at 04:25:27PM +0300, Dan Carpenter wrote:
> This is supposed to be "priv" but we accidentally pass "&priv" which is
> an address in the stack and so it will lead to memory corruption when
> the imx_sc_key_action() function is called. Remove the &.
>
> Fixes: 768062fd1284 ("Input: imx_sc_key - use devm_add_action_or_reset() to handle all cleanups")
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
Applied, thank you.
--
Dmitry
More information about the linux-arm-kernel
mailing list