OSDN Git Service

crypto: hisilicon - fixed memory allocation error
authorLongfang Liu <liulongfang@huawei.com>
Thu, 10 Sep 2020 11:56:43 +0000 (19:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Sep 2020 07:20:11 +0000 (17:20 +1000)
commit24efcec2919afa7d56f848c83a605b46c8042a53
tree4cfcc76ce16a2a2af8863148582fff83c33f4164
parent0542a9416af3b59ae31d0599d5da6ce43bec209c
crypto: hisilicon - fixed memory allocation error

1. Fix the bug of 'mac' memory leak as allocating 'pbuf' failing.
2. Fix the bug of 'qps' leak as allocating 'qp_ctx' failing.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c