]> git.hungrycats.org Git - linux/commit
keys: keyctl_pkey: replace BUG with return -EOPNOTSUPP
authorMohammed EL Kadiri <med08elkadiri@gmail.com>
Mon, 15 Jun 2026 12:11:50 +0000 (15:11 +0300)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 15 Jun 2026 12:19:13 +0000 (15:19 +0300)
commit1b9524250996b1f2f49833a1b2ae21c34e486f85
treeed7fdc6cf932ec2f13e1e26ff5d73e11b19d1fe8
parent10366fe27a4ce08a392eb16ed48ea0a440e671c2
keys: keyctl_pkey: replace BUG with return -EOPNOTSUPP

Replace two BUG() calls in keyctl_pkey_params_get_2() and
keyctl_pkey_e_d_s() default cases with -EOPNOTSUPP, matching
the error style already used in these functions.

Signed-off-by: Mohammed EL Kadiri <med08elkadiri@gmail.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
security/keys/keyctl_pkey.c