projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
auxdisplay: hd44780: Fix memory leak on ->remove()
[linux-2.6-microblaze.git]
/
drivers
/
auxdisplay
/
hd44780.c
diff --git
a/drivers/auxdisplay/hd44780.c
b/drivers/auxdisplay/hd44780.c
index
9ad93ea
..
3cde351
100644
(file)
--- a/
drivers/auxdisplay/hd44780.c
+++ b/
drivers/auxdisplay/hd44780.c
@@
-280,6
+280,8
@@
static int hd44780_remove(struct platform_device *pdev)
struct charlcd *lcd = platform_get_drvdata(pdev);
charlcd_unregister(lcd);
+
+ kfree(lcd);
return 0;
}