diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2010-08-23 13:36:20 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-08-23 13:36:59 +0200 |
commit | 220eb7fd984bfc7e6b4005fdf32efe9cd8af7cf2 (patch) | |
tree | 0a9cace4735d66cd3f889794262828fac01eff9c /fs/bio-integrity.c | |
parent | bio-integrity.c: remove dependency on __GFP_NOFAIL (diff) | |
download | linux-220eb7fd984bfc7e6b4005fdf32efe9cd8af7cf2.tar.xz linux-220eb7fd984bfc7e6b4005fdf32efe9cd8af7cf2.zip |
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/bio-integrity.c')
-rw-r--r-- | fs/bio-integrity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bio-integrity.c b/fs/bio-integrity.c index a8f4cc679983..4d0ff5ee27b8 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; |