summaryrefslogtreecommitdiff
path: root/security/integrity
diff options
context:
space:
mode:
authorDave Kleikamp <dave.kleikamp@oracle.com>2022-01-26 23:32:43 +0300
committerJarkko Sakkinen <jarkko@kernel.org>2022-03-08 14:55:52 +0300
commitc5d1ed846e15090bc90dfdaafc07eac066e070bb (patch)
treef642dfe94775596095ca530a6b14fb7702c00191 /security/integrity
parent969a26446bcd142faedfe8c6f41cd7668596c1fa (diff)
downloadlinux-c5d1ed846e15090bc90dfdaafc07eac066e070bb.tar.xz
KEYS: trusted: Avoid calling null function trusted_key_exit
If one loads and unloads the trusted module, trusted_key_exit can be NULL. Call it through static_call_cond() to avoid a kernel trap. Fixes: 5d0682be3189 ("KEYS: trusted: Add generic trusted keys framework") Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com> Cc: Sumit Garg <sumit.garg@linaro.org> Cc: James Bottomley <jejb@linux.ibm.com> Cc: Jarkko Sakkinen <jarkko@kernel.org> Cc: Mimi Zohar <zohar@linux.ibm.com> Cc: David Howells <dhowells@redhat.com> Cc: James Morris <jmorris@namei.org> Cc: "Serge E. Hallyn" <serge@hallyn.com> Cc: linux-integrity@vger.kernel.org Cc: keyrings@vger.kernel.org Cc: linux-security-module@vger.kernel.org Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'security/integrity')
0 files changed, 0 insertions, 0 deletions