summaryrefslogtreecommitdiff
path: root/include/linux/scatterlist.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2014-08-09 01:23:10 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-09 02:57:26 +0400
commit4d4b866aee039d609c0b40e7e5b27204607ce614 (patch)
tree518c9d3b9e62fcc04669363e9f9235a39872d536 /include/linux/scatterlist.h
parentfa5a7a41a601d952e53bfcfa6d50ca22b956ee3a (diff)
downloadlinux-4d4b866aee039d609c0b40e7e5b27204607ce614.tar.xz
initrd: fix lz4 decompress with initrd
During testing initrd (>2G) support, find decompress/lz4 does not work with initrd at all. decompress_* should support: 1. inbuf[]/outbuf[] for kernel preboot. 2. inbuf[]/flush() for initramfs 3. fill()/flush() for initrd. in the unlz4 does not handle case 3, as input len is passed as 0, and it failed in first try. Fix that add one extra if (fill) checking, and get out if EOF from the fill(). Signed-off-by: Yinghai Lu <yinghai@kernel.org> Cc: Kyungsik Lee <kyungsik.lee@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/scatterlist.h')
0 files changed, 0 insertions, 0 deletions