mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
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
@ -242,6 +242,7 @@ static int cr_backlight_remove(struct platform_device *pdev)
|
|||||||
backlight_device_unregister(crp->cr_backlight_device);
|
backlight_device_unregister(crp->cr_backlight_device);
|
||||||
lcd_device_unregister(crp->cr_lcd_device);
|
lcd_device_unregister(crp->cr_lcd_device);
|
||||||
pci_dev_put(lpc_dev);
|
pci_dev_put(lpc_dev);
|
||||||
|
kfree(crp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user