public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backlight: cr_bllcd.c: fix a memory leak
@ 2010-12-13  6:53 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2010-12-13  6:53 UTC (permalink / raw)
  To: linux-kernel
  Cc: Thomas Hellstrom, Alan Hourihane, Richard Purdie, Andrew Morton

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/video/backlight/cr_bllcd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/video/backlight/cr_bllcd.c b/drivers/video/backlight/cr_bllcd.c
index a4f4546..397d15e 100644
--- a/drivers/video/backlight/cr_bllcd.c
+++ b/drivers/video/backlight/cr_bllcd.c
@@ -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;
 }
-- 
1.7.2




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-13  6:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13  6:53 [PATCH] backlight: cr_bllcd.c: fix a memory leak Axel Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox