projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8defe59
)
pstore/ram: Add missing platform_device_unregister
author
Jovi Zhang
<bookjovi@gmail.com>
Mon, 20 Aug 2012 06:58:26 +0000
(14:58 +0800)
committer
Anton Vorontsov
<anton.vorontsov@linaro.org>
Fri, 31 Aug 2012 22:29:42 +0000
(15:29 -0700)
We need to unregister platform device when module exit, this commit fixes
the issue.
Signed-off-by: Jovi Zhang <bookjovi@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
fs/pstore/ram.c
patch
|
blob
|
history
diff --git
a/fs/pstore/ram.c
b/fs/pstore/ram.c
index 91016049e551d16f23d28f7fd6c8dd2ccaf91c60..1a4f6da58eab4018878aab4275e1d3b6f3309b37 100644
(file)
--- a/
fs/pstore/ram.c
+++ b/
fs/pstore/ram.c
@@
-538,6
+538,7
@@
postcore_initcall(ramoops_init);
static void __exit ramoops_exit(void)
{
platform_driver_unregister(&ramoops_driver);
+ platform_device_unregister(dummy);
kfree(dummy_data);
}
module_exit(ramoops_exit);