Re: [PATCH] virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()

2022-11-14 Thread Jason Wang
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

Re: [PATCH] virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()

2022-11-14 Thread zhenwei pi
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:

RE: [PATCH] virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()

2022-11-14 Thread Gonglei (Arei) via Virtualization
> -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) ; >