diff options
author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2022-12-01 09:25:26 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-12-09 13:45:00 +0300 |
commit | 04ba54e5af8f8f0137b08cb51a0b3a2e1ea46c94 (patch) | |
tree | 7f75dda56e6e86145cbc1d9eadb1f60f3cff8389 /drivers/clk/sunxi-ng/ccu-sun4i-a10.h | |
parent | a428636d4c827ebe967aa31a83684b4c8e742ed1 (diff) | |
download | linux-04ba54e5af8f8f0137b08cb51a0b3a2e1ea46c94.tar.xz |
crypto: img-hash - Fix variable dereferenced before check 'hdev->req'
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: d358f1abbf71 ("crypto: img-hash - Add Imagination Technologies hw hash accelerator")
Fixes: 10badea259fa ("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>
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu-sun4i-a10.h')
0 files changed, 0 insertions, 0 deletions