backlight: cr_bllcd.c: fix a memory leak
Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Thomas Hellstrom <thomas@tungstengraphics.com> Cc: Alan Hourihane <alanh@tungstengraphics.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0d1836c366
commit
5a2d6e31c6
1 changed files with 1 additions and 0 deletions
|
@ -242,6 +242,7 @@ static int cr_backlight_remove(struct platform_device *pdev)
|
|||
backlight_device_unregister(crp->cr_backlight_device);
|
||||
lcd_device_unregister(crp->cr_lcd_device);
|
||||
pci_dev_put(lpc_dev);
|
||||
kfree(crp);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue