[PATCH] block:Change the function,nvme_alloc_queue to use -ENOMEM for when failing memory allocations
willy at linux.intel.com
Wed May 13 06:32:52 PDT 2015
On Tue, May 12, 2015 at 07:51:31PM -0400, Nicholas Krause wrote:
> This changes the function,nvme_alloc_queue to use the kernel code,
> -ENOMEM for when failing to allocate the memory required for the
> nvme_queue structure pointer,nvme in order to correctly return
> to the caller the correct reason for this function's failing.
> if (!nvmeq)
> - return NULL;
> + return -ENOMEM;
You didn't even compile-test this, did you?
More information about the Linux-nvme