[PATCH 0/2] security/keys: replace BUG() in unreachable default cases
Mohammed EL Kadiri
med08elkadiri at gmail.com
Sat Jun 13 13:04:06 UTC 2026
Replace BUG() in two switch default cases with proper error
returns.
Mohammed EL Kadiri (2):
keys: request_key: replace BUG with return -EINVAL
keys: keyctl_pkey: replace BUG with return -EOPNOTSUPP
security/keys/keyctl_pkey.c | 5 +++--
security/keys/request_key.c | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
--
2.43.0
More information about the Linux-security-module-archive
mailing list