]> git.ipfire.org Git - thirdparty/linux.git/commit
keys: request_key: replace BUG with return -EINVAL
authorMohammed EL Kadiri <med08elkadiri@gmail.com>
Sat, 13 Jun 2026 13:04:07 +0000 (14:04 +0100)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 15 Jun 2026 12:19:13 +0000 (15:19 +0300)
commit10366fe27a4ce08a392eb16ed48ea0a440e671c2
treeb3368a7386f1d8d35e3c9d3538ba7d03037bbd97
parentfd15b457a86939c38aa12116adabd8ff686c5e51
keys: request_key: replace BUG with return -EINVAL

Replace BUG() in construct_get_dest_keyring() default case
with return -EINVAL to handle the unimplemented group keyring
destination gracefully.

Signed-off-by: Mohammed EL Kadiri <med08elkadiri@gmail.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20260613130408.13709-2-med08elkadiri@gmail.com
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
security/keys/request_key.c