[POWERPC] bootwrapper: Decompress less, check more
authorMilton Miller <miltonm@bga.com>
Thu, 29 Mar 2007 13:31:41 +0000 (07:31 -0600)
committerPaul Mackerras <paulus@samba.org>
Thu, 12 Apr 2007 17:55:17 +0000 (03:55 +1000)
commit02cc51149f99e3c6c106e1e16dcc2e016b1bc3b5
tree911e09a9aad7536f778cb27264b45f08f99cf0d3
parent1383a34fafeb9f49975fc33783960729fbd2cddf
[POWERPC] bootwrapper: Decompress less, check more

Our kernels put everything in the first load segment, and we read that.
Instead of decompressing to the end of the gzip stream or supplied image
and hoping we get it all, decompress the expected size and complain if
it is not available.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/main.c