Commit e92544c7 authored by Aditya Pakki's avatar Aditya Pakki Committed by Lee Jones
Browse files

HID: lenovo: Add checks to fix of_led_classdev_register



[ Upstream commit 6ae16dfb ]

In lenovo_probe_tpkbd(), the function of_led_classdev_register() could
return an error value that is unchecked. The fix adds these checks.

Signed-off-by: default avatarAditya Pakki <pakki001@umn.edu>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Change-Id: I089b487588018d38901e95ea3fa0f1d46ff701eb
parent 094342c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment