Skip to content

Commit

Permalink
Merge branch 'nvme-5.0' of git://git.infradead.org/nvme into for-linus
Browse files Browse the repository at this point in the history
Pull single NVMe fix from Christoph

* 'nvme-5.0' of git://git.infradead.org/nvme:
  nvme-pci: add missing unlock for reset error
  • Loading branch information
Jens Axboe committed Feb 13, 2019
2 parents 69306fe + 4726bcf commit ace74f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/nvme/host/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2560,15 +2560,15 @@ static void nvme_reset_work(struct work_struct *work)
mutex_lock(&dev->shutdown_lock);
result = nvme_pci_enable(dev);
if (result)
goto out;
goto out_unlock;

result = nvme_pci_configure_admin_queue(dev);
if (result)
goto out;
goto out_unlock;

result = nvme_alloc_admin_tags(dev);
if (result)
goto out;
goto out_unlock;

/*
* Limit the max command size to prevent iod->sg allocations going
Expand Down Expand Up @@ -2651,6 +2651,8 @@ static void nvme_reset_work(struct work_struct *work)
nvme_start_ctrl(&dev->ctrl);
return;

out_unlock:
mutex_unlock(&dev->shutdown_lock);
out:
nvme_remove_dead_ctrl(dev, result);
}
Expand Down

0 comments on commit ace74f7

Please sign in to comment.