pstore: Use dynamic spinlock initializer
authorKees Cook <keescook@chromium.org>
Mon, 6 Mar 2017 06:08:58 +0000 (22:08 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 7 Mar 2017 16:21:38 +0000 (08:21 -0800)
commite9a330c4289f2ba1ca4bf98c2b430ab165a8931b
treee338f03b049d95d474485cb4be8a785a4a1b00eb
parent3faf93543ccb3410bfaf992a0de4a925631a3526
pstore: Use dynamic spinlock initializer

The per-prz spinlock should be using the dynamic initializer so that
lockdep can correctly track it. Without this, under lockdep, we get a
warning at boot that the lock is in non-static memory.

Fixes: 109704492ef6 ("pstore: Make spinlock per zone instead of global")
Fixes: 76d5692a5803 ("pstore: Correctly initialize spinlock and flags")
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
fs/pstore/ram_core.c