]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc187213abecdd8750a275569d20d16562b247a71
tree66f8d7cd04f0b7a8eac338d708a42f077d1e54c2
parent3021a1955fc6e8f03fb361c7a54f89dd23932541
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: adf6305d5ae29 ("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