Commit b4a871bce619dc5ca03cc6c78e1c467ceacb8e7e

Authored by Jovi Zhang
Committed by Anton Vorontsov
1 parent 8defe59969

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -538,6 +538,7 @@
538 538 static void __exit ramoops_exit(void)
539 539 {
540 540 platform_driver_unregister(&ramoops_driver);
  541 + platform_device_unregister(dummy);
541 542 kfree(dummy_data);
542 543 }
543 544 module_exit(ramoops_exit);