Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1169379

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

From Jens Axboe <axboe@fb.com>
Newsgroups linux.kernel
Subject Re: [PATCH] block: nvme-scsi: Catch kcalloc failure
Date 2015-06-20 18:40 +0200
Message-ID <pDtYd-3hG-3@gated-at.bofh.it> (permalink)
References <pDmk2-Nj-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] block: nvme-scsi: Catch kcalloc failure Jens Axboe <axboe@fb.com> - 2015-06-20 18:40 +0200

csiph-web