From: Andrew Morton Date: Mon, 23 Aug 2010 11:36:20 +0000 (+0200) Subject: fs/bio-integrity.c: return -ENOMEM on kmalloc failure X-Git-Tag: v2.6.36-rc4~19^2~7 X-Git-Url: https://bbs.cooldavid.org/git/?a=commitdiff_plain;h=220eb7fd984bfc7e6b4005fdf32efe9cd8af7cf2;p=net-next-2.6.git fs/bio-integrity.c: return -ENOMEM on kmalloc failure Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- diff --git a/fs/bio-integrity.c b/fs/bio-integrity.c index a8f4cc67998..4d0ff5ee27b 100644 --- a/fs/bio-integrity.c +++ b/fs/bio-integrity.c @@ -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;