Files
linux/lib
Albin Tonnerre ccdb40048b 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 54291362d2 ("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 <albin.tonnerre@free-electrons.com>
Tested-by: bert schulze <spambemyguest@googlemail.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-04-24 11:31:25 -07:00
..
2008-07-24 10:47:33 -07:00
2010-03-06 11:26:35 -08:00
2008-06-06 11:29:10 -07:00
2009-11-20 20:13:39 +01:00
2009-11-03 16:06:53 +01:00
2009-01-01 10:12:19 +10:30
2008-04-29 08:11:16 -07:00
2009-06-18 13:04:05 -07:00
2009-06-16 19:47:51 -07:00
2009-12-28 10:41:39 +01:00
2008-07-26 12:00:07 -07:00
2009-12-14 23:55:33 +01:00
2010-02-03 17:39:50 +11:00
2009-10-01 21:17:49 +02:00
2009-12-15 08:53:33 -08:00
2008-07-30 16:29:19 -07:00
2010-01-11 09:34:05 -08:00
2008-01-30 13:33:00 +01:00
2010-03-06 11:26:35 -08:00
2008-07-26 12:00:10 -07:00