Re: [PATCH] block: nvme-scsi: Catch kcalloc failure

2015-06-20 Thread Jens Axboe
On 06/20/2015 02:29 AM, Axel Lin wrote: res variable was initialized to -ENOMEM, but it's override by nvme_trans_copy_from_user(). So current code returns 0 if kcalloc fails. Fix it to return proper error code. Looks good to me, applied for 4.2. -- Jens Axboe -- To unsubscribe from this list:

[PATCH] block: nvme-scsi: Catch kcalloc failure

2015-06-20 Thread Axel Lin
res variable was initialized to -ENOMEM, but it's override by nvme_trans_copy_from_user(). So current code returns 0 if kcalloc fails. Fix it to return proper error code. Signed-off-by: Axel Lin --- drivers/block/nvme-scsi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git