]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
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 a8f4cc679983dc9317d0a62bd4d4d86c49ca39ff..4d0ff5ee27b86bef6d377b9211694941939999a9 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;