[PATCH 2/2] nvme-loop: Fix memory leak in nvme_loop_create_ctrl()

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Tue May 18 21:48:17 PDT 2021



Sent from my iPhone

> On May 18, 2021, at 9:35 PM, Wu Bo <wubo40 at huawei.com> wrote:
> 
> When creating loop ctrl in nvme_loop_create_ctrl(), if nvme_init_ctrl()
> returns fails, the loop ctrl should be freed before
> jumps to the "out" label.
> 
> Fixes: 3a85a5de29ea7 ("nvme-loop: add a NVMe loopback host driver")

Please make sure comit logs lines filled up 72 char and
Commit hash is 12 digit. 

See the commit logs in the tree to get the better idea. 





More information about the Linux-nvme mailing list