From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sullivan.realtime.net (sullivan.realtime.net [205.238.132.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 182EDDDF78 for ; Sat, 22 Sep 2007 09:03:49 +1000 (EST) Date: Fri, 21 Sep 2007 18:03:34 -0500 (CDT) Subject: [PATCH 2/15] boot: record header bytes in gunzip_start Sender: From: Milton Miller To: linuxppc-dev@ozlabs.org Message-Id: In-Reply-To: Cc: Paul Mackerras , Rob Landley , David Gibson List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- Identical to 12169 Index: kernel/arch/powerpc/boot/gunzip_util.c =================================================================== --- kernel.orig/arch/powerpc/boot/gunzip_util.c 2007-07-10 03:33:34.000000000 -0500 +++ kernel/arch/powerpc/boot/gunzip_util.c 2007-07-10 03:40:59.000000000 -0500 @@ -78,6 +78,7 @@ void gunzip_start(struct gunzip_state *s fatal("inflateInit2 returned %d\n\r", r); } + state->s.total_in = hdrlen; state->s.next_in = src + hdrlen; state->s.avail_in = srclen - hdrlen; }