Re: [PATCH] platform: x86: Add check for led_classdev_register

2019-02-05 Thread Andy Shevchenko
On Tue, Dec 25, 2018 at 12:08 AM Aditya Pakki wrote: > > In function alienware_zone_init, the function led_classdev_register > can return an error on failure. The fix checks the error and frees > the allocated resources. > I'm not sure about this. Is the LED registration fatal? > Signed-off-by:

[PATCH] platform: x86: Add check for led_classdev_register

2018-12-24 Thread Aditya Pakki
In function alienware_zone_init, the function led_classdev_register can return an error on failure. The fix checks the error and frees the allocated resources. Signed-off-by: Aditya Pakki --- drivers/platform/x86/alienware-wmi.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-)