projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c0ef6d
)
UIO: uio_pdrv: fix memory leak
author
Uwe Kleine-König
<Uwe.Kleine-Koenig@digi.com>
Fri, 11 Jul 2008 09:10:36 +0000
(11:10 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 21 Aug 2008 17:15:38 +0000
(10:15 -0700)
Thanks to Magnus Damm for pointing that out.
Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Cc: Magnus Damm <magnus.damm@gmail.com>
Acked-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/uio/uio_pdrv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/uio/uio_pdrv.c
b/drivers/uio/uio_pdrv.c
index 5d0d2e85d9820ed70c48b900c262d7ff1c44f393..aa3bff8f93ab1be7ee5ca6b2376381d8bbbe2136 100644
(file)
--- a/
drivers/uio/uio_pdrv.c
+++ b/
drivers/uio/uio_pdrv.c
@@
-88,6
+88,8
@@
static int uio_pdrv_remove(struct platform_device *pdev)
uio_unregister_device(pdata->uioinfo);
+ kfree(pdata);
+
return 0;
}