]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/video/backlight/cr_bllcd.c
backlight: cr_bllcd.c: fix a memory leak
[~shefty/rdma-dev.git] / 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;
 }