summaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorJovi Zhang <bookjovi@gmail.com>2012-08-20 14:58:26 +0800
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-08-31 15:29:42 -0700
commitb4a871bce619dc5ca03cc6c78e1c467ceacb8e7e (patch)
tree097397e0002cb7c5127a1e04e401344c598a074d /fs/pstore
parent8defe59969cb8d863fe46867809316350ec0fc8f (diff)
downloadop-kernel-dev-b4a871bce619dc5ca03cc6c78e1c467ceacb8e7e.zip
op-kernel-dev-b4a871bce619dc5ca03cc6c78e1c467ceacb8e7e.tar.gz
pstore/ram: Add missing platform_device_unregister
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>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/ram.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 9101604..1a4f6da 100644
--- 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);
OpenPOWER on IntegriCloud