1
0
Fork 0

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>
hifive-unleashed-5.1
Andrew Morton 2010-08-23 13:36:20 +02:00 committed by Jens Axboe
parent 72f4650337
commit 220eb7fd98
1 changed files with 1 additions and 1 deletions

View File

@ -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;