commit | 6f0f54499f2edf7e25410cdd99e6f030f3485fd1 | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | Wed May 11 13:30:59 2011 -0700 |
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | Fri Nov 04 15:53:03 2011 -0400 |
tree | 805003a9c7fa87e77fb41a50f308ad178688f79c | |
parent | be5e09484078e95af20acb13e215cd8aec705893 [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>