Re: [PATCH] Input: imx_sc_key - Fix memory corruption on unload
From: Peng Fan
Date: Mon Nov 03 2025 - 20:42:35 EST
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@xxxxxxxxxx>
Thanks for the fix.
Reviewed-by: Peng Fan <peng.fan@xxxxxxx>