[PATCH] nvme-fabrics: error out to unlock the mutex

Christoph Hellwig hch at lst.de
Fri Jun 2 08:03:15 PDT 2023


On Thu, Jun 01, 2023 at 10:37:13PM -0700, Chaitanya Kulkarni wrote:
>  	host = nvmf_host_alloc(hostnqn, id);
> -	if (!host)
> -		return ERR_PTR(-ENOMEM);
> +	if (!host) {
> +		host = ERR_PTR(-ENOMEM);
> +		goto out_unlock;
> +	}

Looks good:

Reviewed-by: Christoph Hellwig <hch at lst.de>



More information about the Linux-nvme mailing list