Skip to content
Commit e1b31edf authored by Haoran Liu's avatar Haoran Liu Committed by Greg Kroah-Hartman
Browse files

Input: ipaq-micro-keys - add error handling for devm_kmemdup



[ Upstream commit 59b6a747 ]

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: default avatarHaoran Liu <liuhaoran14@163.com>
Link: https://lore.kernel.org/r/20231203164653.38983-1-liuhaoran14@163.com


Fixes: d7535ffa ("Input: driver for microcontroller keys on the iPaq h3xxx")
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a85d6aa2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment