summaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew.r.wilcox@intel.com>2011-05-11 13:30:59 -0700
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2011-11-04 15:53:03 -0400
commit6f0f54499f2edf7e25410cdd99e6f030f3485fd1 (patch)
tree805003a9c7fa87e77fb41a50f308ad178688f79c /block/genhd.c
parentbe5e09484078e95af20acb13e215cd8aec705893 (diff)
NVMe: Return real error from nvme_create_queue
nvme_setup_io_queues() was assuming that a NULL return from nvme_create_queue() was an out-of-memory error. That's not necessarily true; the adapter might return -EIO, for example. Change the calling convention to return an ERR_PTR on failure instead of NULL. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions