Re: [PATCH v2] Input: amijoy - fix memory region leak on registration failure
From: Dmitry Torokhov
Date: Sat Nov 07 2026 - 23:26:57 EST
On Sun, Nov 08, 2026 at 01:49:52AM +0100, Thorsten Blum wrote:
> If input_register_device() fails in amijoy_init(), release the memory
> region for the current port before cleaning up the previously registered
> ports.
>
> Consolidate the error paths while at it.
>
> Fixes: 127278ce2254 ("Input: joysticks - handle errors when registering input devices")
> Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
Applied, thank you.
--
Dmitry