]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: sun8i-ce-hash - fix error handling in sun8i_ce_hash_run()
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Tue, 1 Apr 2025 19:23:16 +0000 (22:23 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 8 Apr 2025 07:54:38 +0000 (15:54 +0800)
commitea4dd134ef332bd9e3e734c1ba0a1521f436b678
treee59c40117b3fe1eb470af1e0d3903e9e4e6f90fd
parent3f8f0133a5fc9b32d0c308530320c3f2430ba5ab
crypto: sun8i-ce-hash - fix error handling in sun8i_ce_hash_run()

Rework error handling in sun8i_ce_hash_run() to unmap the dma buffers in
case of failure. Currently, the dma unmap functions are not called if the
function errors out at various points.

Fixes: 56f6d5aee88d1 ("crypto: sun8i-ce - support hash algorithms")
Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c