]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitc4ae69d985c87b5dc2b01bf5189ee689933e29bb
tree911e09a9aad7536f778cb27264b45f08f99cf0d3
parent0ae4d5cefc427e317109cb592a1a07ca61d905df
[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