From 17525484c1caf754c5e306ff274dbcb760cd828b Mon Sep 17 00:00:00 2001 From: Jovi Zhang Date: Mon, 20 Aug 2012 14:58:26 +0800 Subject: [PATCH] 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 Acked-by: Kees Cook Signed-off-by: Anton Vorontsov --- fs/pstore/ram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 91016049e551..2e906b33cd11 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -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); } -- 2.39.5