nvme-pci: add missing unlock for reset error
authorKeith Busch <keith.busch@intel.com>
Mon, 11 Feb 2019 16:23:50 +0000 (09:23 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 12 Feb 2019 08:29:07 +0000 (09:29 +0100)
commit4726bcf30fad37cc555cd9dcd6c73f2b2668c879
tree66f8d7cd04f0b7a8eac338d708a42f077d1e54c2
parentaef1897cd36dcf5e296f1d2bae7e0d268561b685
nvme-pci: add missing unlock for reset error

The reset work holds a mutex to prevent races with removal modifying the
same resources, but was unlocking only on success. Unlock on failure
too.

Fixes: 5c959d73dba64 ("nvme-pci: fix rapid add remove sequence")
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c