lkml.org 
[lkml]   [2015]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] block: nvme-scsi: Catch kcalloc failure
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: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2015-06-20 19:01    [W:2.556 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site