diff options
author | Milton Miller <miltonm@bga.com> | 2007-09-21 23:03:34 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-03 01:48:43 (GMT) |
commit | e47654d016c68a02f654ac16951577804f7789c7 (patch) | |
tree | 513c433943f540116a67bf298c9d9f8f40e16ff3 /arch/powerpc/boot/gunzip_util.c | |
parent | 6fccab26df4f59815d7ec912e4111a92807780de (diff) | |
download | linux-e47654d016c68a02f654ac16951577804f7789c7.tar.xz |
[POWERPC] boot: Record header bytes in gunzip_start
Record the number of header bytes skipped in the total bytes read field.
This is needed for the initramfs parsing code to find the end of the zip file.
Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/gunzip_util.c')
-rw-r--r-- | arch/powerpc/boot/gunzip_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/boot/gunzip_util.c b/arch/powerpc/boot/gunzip_util.c index df8ab07..e1e215e 100644 --- a/arch/powerpc/boot/gunzip_util.c +++ b/arch/powerpc/boot/gunzip_util.c @@ -78,6 +78,7 @@ void gunzip_start(struct gunzip_state *state, void *src, int srclen) fatal("inflateInit2 returned %d\n\r", r); } + state->s.total_in = hdrlen; state->s.next_in = src + hdrlen; state->s.avail_in = srclen - hdrlen; } |