KEYS: encrypted: Add check for strsep
authorChen Ni <nichen@iscas.ac.cn>
Wed, 8 Nov 2023 07:36:27 +0000 (07:36 +0000)
committerMimi Zohar <zohar@linux.ibm.com>
Mon, 27 Nov 2023 17:44:47 +0000 (12:44 -0500)
commitb4af096b5df5dd131ab796c79cedc7069d8f4882
tree6350122a39320e40990090516aa35904caa17f95
parentf17167bea279d07314ee2629e7ce2dd5a754fec7
KEYS: encrypted: Add check for strsep

Add check for strsep() in order to transfer the error.

Fixes: cd3bc044af48 ("KEYS: encrypted: Instantiate key with user-provided decrypted data")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/keys/encrypted-keys/encrypted.c