Commit e47654d0 authored by Milton Miller's avatar Milton Miller Committed by Paul Mackerras

[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: default avatarMilton Miller <miltonm@bga.com>
Acked-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 6fccab26
...@@ -78,6 +78,7 @@ void gunzip_start(struct gunzip_state *state, void *src, int srclen) ...@@ -78,6 +78,7 @@ void gunzip_start(struct gunzip_state *state, void *src, int srclen)
fatal("inflateInit2 returned %d\n\r", r); fatal("inflateInit2 returned %d\n\r", r);
} }
state->s.total_in = hdrlen;
state->s.next_in = src + hdrlen; state->s.next_in = src + hdrlen;
state->s.avail_in = srclen - hdrlen; state->s.avail_in = srclen - hdrlen;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment