diff options
author | David VomLehn <dvomlehn@cisco.com> | 2009-04-03 01:59:15 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-03 04:05:07 +0200 |
commit | 98310e581e098514867573031b2bfa4ba89c0d93 (patch) | |
tree | b4eeec1516af4be7bd7f3f64dbf49f80e84b2bca /fs/cramfs/uncompress.c | |
parent | xpc_sn2: fix max() warning about pointers of different types (diff) | |
download | linux-98310e581e098514867573031b2bfa4ba89c0d93.tar.xz linux-98310e581e098514867573031b2bfa4ba89c0d93.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cramfs/uncompress.c b/fs/cramfs/uncompress.c index fc3ccb74626f..023329800d2e 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) |