Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
unsigned int insize;
/* Index of next byte to be processed in inbuf: */
unsigned int inptr;
+
+ unsigned long bytes_out;
};
#define malloc(a) xmalloc_bytes(a)
# define Tracecv(c, x)
#endif
-static long __initdata bytes_out;
static void flush_window(struct gunzip_state *s);
static __init void error(const char *x)
}
crc = c;
- bytes_out += s->wp;
+ s->bytes_out += s->wp;
s->wp = 0;
}
s->inbuf = (unsigned char *)image;
s->insize = image_len;
s->inptr = 0;
- bytes_out = 0;
+ s->bytes_out = 0;
makecrc();
error("crc error");
return -1;
}
- if (orig_len != bytes_out) {
+
+ if ( orig_len != s->bytes_out )
+ {
error("length error");
return -1;
}