OSDN Git Service

pstore: Avoid race in module unloading
authorKees Cook <keescook@chromium.org>
Sat, 4 Mar 2017 01:45:38 +0000 (17:45 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 7 Mar 2017 16:21:38 +0000 (08:21 -0800)
commit1344dd86f35c7669c94aceb2273676e356cff848
treef3d03fec8d2693cd9704514d645c81bde6db6312
parent6330d5534786d5315d56d558aa6d20740f97d80a
pstore: Avoid race in module unloading

Technically, it might be possible for struct pstore_info to go out of
scope after the module_put(), so report the backend name first.

Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c