summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2010-08-23 13:36:20 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-08-23 13:36:59 +0200
commit220eb7fd984bfc7e6b4005fdf32efe9cd8af7cf2 (patch)
tree0a9cace4735d66cd3f889794262828fac01eff9c /fs
parent72f465033702ebfe20db8f50edaad59f0f38b0f5 (diff)
downloadop-kernel-dev-220eb7fd984bfc7e6b4005fdf32efe9cd8af7cf2.zip
op-kernel-dev-220eb7fd984bfc7e6b4005fdf32efe9cd8af7cf2.tar.gz
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/bio-integrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bio-integrity.c b/fs/bio-integrity.c
index a8f4cc6..4d0ff5e 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;
OpenPOWER on IntegriCloud