[PATCH] nvme: fix controller instance leak

Christoph Hellwig hch at lst.de
Thu Aug 27 02:40:21 EDT 2020


On Wed, Aug 26, 2020 at 10:53:04AM -0700, Keith Busch wrote:
> If the driver has to unbind from the controller for an early failure
> before the subsystem has been set up, there won't be a subsystem holding
> the controller's instance, so the controller needs to free its own
> instance in this case.
> 
> Fixes: 733e4b69d508d ("nvme: Assign subsys instance from first ctrl")
> Signed-off-by: Keith Busch <kbusch at kernel.org>

Looks good,

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



More information about the Linux-nvme mailing list