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


Groups > linux.kernel > #1169379 > unrolled thread

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

Started byJens Axboe <axboe@fb.com>
First post2015-06-20 18:40 +0200
Last post2015-06-20 18:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromJens Axboe <axboe@fb.com>
Date2015-06-20 18:40 +0200
SubjectRe: [PATCH] block: nvme-scsi: Catch kcalloc failure
Message-ID<pDtYd-3hG-3@gated-at.bofh.it>
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/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web