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:
Родитель
0d1836c366
Коммит
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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче