]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit9620cfba97a8b88ae91f0e275e8ff110b578bb6e
tree591211f3cfce61222eaba39f703529f8dc88ccfb
parent30f92d62e5b41a94de2d0bbd677a6ea2fcfed74f
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