Re: [PATCH] ipaq-micro-keys: Add error handling for devm_kmemdup

From: Dmitry Torokhov
Date: Sun Dec 03 2023 - 14:10:10 EST


On Sun, Dec 03, 2023 at 08:46:53AM -0800, Haoran Liu wrote:
> Check the return value of i2c_add_adapter. Static analysis revealed that
> the function did not properly handle potential failures of
> i2c_add_adapter, which could lead to partial initialization of the I2C
> adapter and unstable operation.
>
> Signed-off-by: Haoran Liu <liuhaoran14@xxxxxxx>

Applied, thank you.

--
Dmitry