backlight: cr_bllcd.c: fix a memory leak
authorAxel Lin <[email protected]>
Wed, 22 Dec 2010 01:24:27 +0000 (17:24 -0800)
committerLinus Torvalds <[email protected]>
Thu, 23 Dec 2010 03:43:34 +0000 (19:43 -0800)
Signed-off-by: Axel Lin <[email protected]>
Cc: Thomas Hellstrom <[email protected]>
Cc: Alan Hourihane <[email protected]>
Cc: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/backlight/cr_bllcd.c

index a4f4546f0be08555f8a2d793b6b94beaae91186f..397d15eb1ea8aee3d4fe870ae87f8b14f161654f 100644 (file)
@@ -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;
 }