]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: tegra - check return value for hash do_one_req
authorAkhil R <akhilrajeev@nvidia.com>
Mon, 24 Feb 2025 09:16:04 +0000 (14:46 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Mar 2025 08:22:23 +0000 (16:22 +0800)
commitdcf8b7e49b86738296c77fb58c123dd2d74a22a7
tree93e28fe815d2af1fd4ef2c027c4f456ebcfe07bf
parent1e245948ca0c252f561792fabb45de5518301d97
crypto: tegra - check return value for hash do_one_req

Initialize and check the return value in hash *do_one_req() functions
and exit the function if there is an error. This fixes the
'uninitialized variable' warnings reported by testbots.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202412071747.flPux4oB-lkp@intel.com/
Fixes: 0880bb3b00c8 ("crypto: tegra - Add Tegra Security Engine driver")
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/tegra/tegra-se-aes.c
drivers/crypto/tegra/tegra-se-hash.c