]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pstore/ram: Add missing platform_device_unregister
authorJovi Zhang <bookjovi@gmail.com>
Mon, 20 Aug 2012 06:58:26 +0000 (14:58 +0800)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Wed, 22 Aug 2012 02:27:40 +0000 (19:27 -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

index 91016049e551d16f23d28f7fd6c8dd2ccaf91c60..2e906b33cd11fb1899631f4058aaedfd10a0796c 100644 (file)
@@ -537,6 +537,7 @@ postcore_initcall(ramoops_init);
 
 static void __exit ramoops_exit(void)
 {
+       platform_device_unregister(dummy);
        platform_driver_unregister(&ramoops_driver);
        kfree(dummy_data);
 }