Messages in this thread | | | Date | Wed, 13 May 2015 09:32:52 -0400 | From | Matthew Wilcox <> | Subject | Re: [PATCH] block:Change the function,nvme_alloc_queue to use -ENOMEM for when failing memory allocations |
| |
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?
| |