]> 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)
commit438b02395d72d7a14368bb7aceb11c2386759bb2
tree66f8d7cd04f0b7a8eac338d708a42f077d1e54c2
parentc2f16685bef6bcf5b81df5bb01f7d31aa7449f61
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: ed5f309bf16ff ("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