Skip to content
Commit 6f0f5449 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

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: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent be5e0948
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment