summaryrefslogtreecommitdiff
path: root/fs/cramfs/uncompress.c
diff options
context:
space:
mode:
authorDavid VomLehn <dvomlehn@cisco.com>2009-04-02 23:59:15 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-03 02:05:07 (GMT)
commit98310e581e098514867573031b2bfa4ba89c0d93 (patch)
treeb4eeec1516af4be7bd7f3f64dbf49f80e84b2bca /fs/cramfs/uncompress.c
parent6e873ec71d091f52510f6aa9bc71d4732438522a (diff)
downloadlinux-98310e581e098514867573031b2bfa4ba89c0d93.tar.xz
cramfs: propagate uncompression errors
Decompression errors can arise due to corruption of compressed blocks on flash or in memory. This patch propagates errors detected during decompression back to the block layer. Signed-off-by: David VomLehn <dvomlehn@cisco.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/cramfs/uncompress.c')
-rw-r--r--fs/cramfs/uncompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cramfs/uncompress.c b/fs/cramfs/uncompress.c
index fc3ccb7..0233298 100644
--- a/fs/cramfs/uncompress.c
+++ b/fs/cramfs/uncompress.c
@@ -50,7 +50,7 @@ int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen)
err:
printk("Error %d while decompressing!\n", err);
printk("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen);
- return 0;
+ return -EIO;
}
int cramfs_uncompress_init(void)