Merge tag 'pstore-v4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Oct 2018 13:42:02 +0000 (14:42 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Oct 2018 13:42:02 +0000 (14:42 +0100)
Pull pstore updates from Kees Cook:
 "pstore improvements:

   - refactor init to happen as early as possible again (Joel Fernandes)

   - improve resource reservation names"

* tag 'pstore-v4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
  pstore/ram: Clarify resource reservation labels
  pstore: Refactor compression initialization
  pstore: Allocate compression during late_initcall()
  pstore: Centralize init/exit routines

1  2 
fs/pstore/ram.c
fs/pstore/ram_core.c

diff --cc fs/pstore/ram.c
index f4fd2e72add4ebd512d4e3e499c0c07999c455df,712960e117fea4366756e83f2c3742062f802a33..ffcff6516e89cccfcbbc138a6d7331e4ca9fb63b
@@@ -953,16 -947,10 +963,16 @@@ static void __init ramoops_register_dum
  
  static int __init ramoops_init(void)
  {
 +      int ret;
 +
        ramoops_register_dummy();
 -      return platform_driver_register(&ramoops_driver);
 +      ret = platform_driver_register(&ramoops_driver);
 +      if (ret != 0)
 +              ramoops_unregister_dummy();
 +
 +      return ret;
  }
late_initcall(ramoops_init);
postcore_initcall(ramoops_init);
  
  static void __exit ramoops_exit(void)
  {
Simple merge