Skip to content

Commit 220eb7f

Browse files
akpm00Jens Axboe
authored andcommitted
fs/bio-integrity.c: return -ENOMEM on kmalloc failure
Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 72f4650 commit 220eb7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/bio-integrity.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ int bio_integrity_prep(struct bio *bio)
416416
buf = kmalloc(len, GFP_NOIO | q->bounce_gfp);
417417
if (unlikely(buf == NULL)) {
418418
printk(KERN_ERR "could not allocate integrity buffer\n");
419-
return -EIO;
419+
return -ENOMEM;
420420
}
421421

422422
end = (((unsigned long) buf) + len + PAGE_SIZE - 1) >> PAGE_SHIFT;

0 commit comments

Comments
 (0)