diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-01-13 02:01:18 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 17:03:24 +0100 |
commit | 528941ca05734f24a7568c1c082125f2b635c4eb (patch) | |
tree | 1fb14770f7605c09863175787671217408203c26 /mm | |
parent | Decompressors: check for read errors in decompress_unlzma.c (diff) | |
download | linux-528941ca05734f24a7568c1c082125f2b635c4eb.tar.xz linux-528941ca05734f24a7568c1c082125f2b635c4eb.zip |
Decompressors: check for write errors in decompress_unlzma.c
The return value of wr->flush() is not checked in write_byte(). This
means that the decompressor won't stop even if the caller doesn't want
more data. This can happen e.g. with corrupt LZMA-compressed initramfs.
Returning the error quickly allows the user to see the error message
quicker.
There is a similar missing check for wr.flush() near the end of unlzma().
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alain Knaff <alain@knaff.lu>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions