Skip to content

Commit

Permalink
pstore/ram: Add missing platform_device_unregister
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jovi Zhang authored and Anton Vorontsov committed Aug 31, 2012
1 parent 8defe59 commit b4a871b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/pstore/ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b4a871b

Please sign in to comment.