]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca8ae9914a6e04fae38448108d04455ba76f19e7
tree4cfcc76ce16a2a2af8863148582fff83c33f4164
parent79801ebbe2a0d1321f98b0d9ddd2c76d89812fe0
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