Skip to content

Commit

Permalink
fs/bio-integrity.c: return -ENOMEM on kmalloc failure
Browse files Browse the repository at this point in the history
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
  • Loading branch information
Andrew Morton authored and Jens Axboe committed Aug 23, 2010
1 parent 72f4650 commit 220eb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/bio-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ int bio_integrity_prep(struct bio *bio)
buf = kmalloc(len, GFP_NOIO | q->bounce_gfp);
if (unlikely(buf == NULL)) {
printk(KERN_ERR "could not allocate integrity buffer\n");
return -EIO;
return -ENOMEM;
}

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

0 comments on commit 220eb7f

Please sign in to comment.