]> 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)
commit64035e9a363303bedfddaca78738c35f3b4d707d
tree591211f3cfce61222eaba39f703529f8dc88ccfb
parentb1a70f4c1f400c028490ea02c784d066c1db62af
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