]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: Replace spin_is_locked() with lockdep
authorLance Roy <ldr709@gmail.com>
Wed, 3 Oct 2018 05:39:01 +0000 (22:39 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 3 Oct 2018 13:29:22 +0000 (06:29 -0700)
commit648c55fc5919f6ef7afd5c6ca91b8d8482e4010c
treeb3d3bab8c5d544e7deae540a70685b49b9545ff0
parent8c0000cd686950590d9a9ced738a2d4eb40ab235
apparmor: Replace spin_is_locked() with lockdep

lockdep_assert_held() is better suited to checking locking requirements,
since it won't get confused when someone else holds the lock. This is
also a step towards possibly removing spin_is_locked().

Signed-off-by: Lance Roy <ldr709@gmail.com>
Cc: John Johansen <john.johansen@canonical.com>
Cc: James Morris <jmorris@namei.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: <linux-security-module@vger.kernel.org>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/file.c