Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

backlight: 88pm860x_bl: fix error handling in pm860x_backlight_probe

This patch properly unregisters a previously registered backlight device object
in error handling

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>

authored by

Axel Lin and committed by
Richard Purdie
1f976996 146e10a8

+1
+1
drivers/video/backlight/88pm860x_bl.c
··· 267 267 backlight_update_status(bl); 268 268 return 0; 269 269 out: 270 + backlight_device_unregister(bl); 270 271 kfree(data); 271 272 return ret; 272 273 }