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>
This commit is contained in:
committed by
Linus Torvalds
parent
6e873ec71d
commit
98310e581e
@ -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)
|
||||
|
Reference in New Issue
Block a user