]> git.baikalelectronics.ru Git - kernel.git/commit
pstore: Drop useless try_module_get() for backend
authorKees Cook <keescook@chromium.org>
Tue, 5 May 2020 02:21:54 +0000 (19:21 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 12 May 2020 16:12:31 +0000 (09:12 -0700)
commit2b8af319bf998d59b6a871cf8995c52fd6d1b1df
tree5d3b1613fef5e423f95dd95d094ef266e39c3764
parent0e6c92ce1d170795a396f8108369eb2c8412797f
pstore: Drop useless try_module_get() for backend

There is no reason to be doing a module get/put in pstore_register(),
since the module calling pstore_register() cannot be unloaded since it
hasn't finished its initialization. Remove it so there is no confusion
about how registration ordering works.

Link: https://lore.kernel.org/lkml/20200506152114.50375-2-keescook@chromium.org/
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c