diff options
| author | Albin Tonnerre <[email protected]> | 2010-04-23 17:17:58 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-04-24 18:31:25 +0000 |
| commit | ccdb40048b2972f10bdc944913c0e0ee26b5d1f2 (patch) | |
| tree | 96b938147966ecfbffdb6d12fa630cf0b4931952 /lib/debugobjects.c | |
| parent | hugetlb: fix infinite loop in get_futex_key() when backed by huge pages (diff) | |
| download | kernel-ccdb40048b2972f10bdc944913c0e0ee26b5d1f2.tar.gz kernel-ccdb40048b2972f10bdc944913c0e0ee26b5d1f2.zip | |
lib: fix the use of LZO to decompress initramfs images
This patch fixes 2 issues with the LZO decompressor:
- It doesn't handle the case where a block isn't compressed at all. In
this case, calling lzo1x_decompress_safe will fail, so we need to just
use memcpy() instead (the upstream LZO code does something similar)
- Since commit 54291362d2a5738e1b0495df2abcb9e6b0563a3f ("initramfs: add
missing decompressor error check") , the decompressor return code is
checked in the init/initramfs.c The LZO decompressor didn't return the
expected value, causing the initramfs code to falsely believe a
decompression error occured
Signed-off-by: Albin Tonnerre <[email protected]>
Tested-by: bert schulze <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
