]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: propagate (some) errors from host memory buffer setup
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Sep 2017 10:19:57 +0000 (12:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Sep 2017 16:29:39 +0000 (12:29 -0400)
commit3c77072999551a52fd8a5595103100621f15c062
tree591211f3cfce61222eaba39f703529f8dc88ccfb
parent472b2bcb15e56ab719b1ddcdcaeb859a719e6915
nvme-pci: propagate (some) errors from host memory buffer setup

We want to catch command execution errors when resetting the device, so
propagate errors from the Set Features when setting up the host memory
buffer.  We keep ignoring memory allocation failures, as the spec
clearly says that the controller must work without a host memory buffer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Cc: stable@vger.kernel.org
drivers/nvme/host/pci.c