Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: img-hash - Fix variable dereferenced before check 'hdev->req'
[ Upstream commit 04ba54e ] Smatch report warning as follows: drivers/crypto/img-hash.c:366 img_hash_dma_task() warn: variable dereferenced before check 'hdev->req' Variable dereferenced should be done after check 'hdev->req', fix it. Fixes: d358f1a ("crypto: img-hash - Add Imagination Technologies hw hash accelerator") Fixes: 10badea ("crypto: img-hash - Fix null pointer exception") Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information