Re: [PATCH] crypto: hisilicon/qm - fix missing destroy qp_idr
From: Herbert Xu
Date: Fri Aug 19 2022 - 07:05:09 EST
On Sat, Aug 13, 2022 at 06:34:52PM +0800, Yang Shen wrote:
> From: Weili Qian <qianweili@xxxxxxxxxx>
>
> In the function hisi_qm_memory_init(), if resource alloc fails after
> idr_init, the initialized qp_idr needs to be destroyed.
>
> Signed-off-by: Weili Qian <qianweili@xxxxxxxxxx>
> Signed-off-by: Yang Shen <shenyang39@xxxxxxxxxx>
> ---
> drivers/crypto/hisilicon/qm.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt