mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-04 12:13:05 +09:00
commite9a330c428upstream. 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:109704492e("pstore: Make spinlock per zone instead of global") Fixes:76d5692a58("pstore: Correctly initialize spinlock and flags") Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>