crypto: hisilicon/sec - fix for sgl unmmap problem
authorWenkai Lin <linwenkai6@hisilicon.com>
Fri, 15 Sep 2023 09:13:29 +0000 (17:13 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 20 Sep 2023 05:15:54 +0000 (13:15 +0800)
commitce2cb2e1b8a27d929a0eaa042049912b0756efe0
tree3128effe5d96f73f6f3c3893da6424b9d153f4cb
parent37b14f2dfa791fd485dbc536f8d1ffe8c6990290
crypto: hisilicon/sec - fix for sgl unmmap problem

When sec_aead_mac_init returns an error code, sec_cipher_map
will exit abnormally, the hardware sgl should be unmmaped.

Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c