Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e47654d016c68a02f654ac16951577804f7789c7
Commit:     e47654d016c68a02f654ac16951577804f7789c7
Parent:     6fccab26df4f59815d7ec912e4111a92807780de
Author:     Milton Miller <[EMAIL PROTECTED]>
AuthorDate: Sat Sep 22 09:03:34 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Wed Oct 3 11:48:43 2007 +1000

    [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 <[EMAIL PROTECTED]>
    Acked-by: David Gibson <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 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;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to