On Mon, Nov 14, 2022 at 7:26 PM Wei Yongjun wrote:
>
> From: Wei Yongjun
>
> 'vc_ctrl_req' is alloced in virtio_crypto_alg_skcipher_close_session(),
> and should be freed in the invalid ctrl_status->status error handling
> case. Otherwise there is a memory leak.
>
> Fixes: 0756ad15b1fe
Looks good to me, thanks!
Acked-by: zhenwei pi
On 11/14/22 19:07, Wei Yongjun wrote:
From: Wei Yongjun
'vc_ctrl_req' is alloced in virtio_crypto_alg_skcipher_close_session(),
and should be freed in the invalid ctrl_status->status error handling
case. Otherwise there is a memory leak.
Fixes:
> -Original Message-
> From: Wei Yongjun [mailto:weiyong...@huaweicloud.com]
> Sent: Monday, November 14, 2022 7:08 PM
> To: Michael S. Tsirkin ; Jason Wang
> ; Gonglei (Arei) ;
> Herbert Xu ; David S. Miller
> ; zhenwei pi
> Cc: weiyongjun (A) ;
>