]> www.infradead.org Git - users/hch/block.git/commit
ubifs: add check for crypto_shash_tfm_digest
authorChen Ni <nichen@iscas.ac.cn>
Thu, 20 Jun 2024 08:19:26 +0000 (16:19 +0800)
committerRichard Weinberger <richard@nod.at>
Fri, 12 Jul 2024 20:01:09 +0000 (22:01 +0200)
commit054fd15984454f031611d6c63675fc578aad0cb1
tree5f53f1ccc86dad726bf69b0a463bbde9cf6a7dd5
parent25e79a7f2c9e54872fb2c8932bb582a500284505
ubifs: add check for crypto_shash_tfm_digest

Add check for the return value of crypto_shash_tfm_digest() and return
the error if it fails in order to catch the error.

Fixes: 817aa094842d ("ubifs: support offline signed images")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/master.c