fs/bio-integrity.c: return -ENOMEM on kmalloc failure
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 23 Aug 2010 11:36:20 +0000 (13:36 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 23 Aug 2010 11:36:59 +0000 (13:36 +0200)
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fs/bio-integrity.c

index a8f4cc6..4d0ff5e 100644 (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;