Re: [PATCH] hid: Add checks to fix of_led_classdev_register

2019-01-03 Thread Jiri Kosina
On Mon, 24 Dec 2018, Aditya Pakki wrote: > In lenovo_probe_tpkbd(), the function of_led_classdev_register() could > return an error value that is unchecked. The fix adds these checks. Applied, thanks. -- Jiri Kosina SUSE Labs

[PATCH] hid: Add checks to fix of_led_classdev_register

2018-12-24 Thread Aditya Pakki
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: Aditya Pakki --- drivers/hid/hid-lenovo.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git