diff options
Diffstat (limited to 'arch/ppc64/boot/zlib.c')
-rw-r--r-- | arch/ppc64/boot/zlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc64/boot/zlib.c b/arch/ppc64/boot/zlib.c index 9d5e4e9832d2..78837e884b8b 100644 --- a/arch/ppc64/boot/zlib.c +++ b/arch/ppc64/boot/zlib.c | |||
@@ -1307,7 +1307,7 @@ local int huft_build( | |||
1307 | { | 1307 | { |
1308 | *t = (inflate_huft *)Z_NULL; | 1308 | *t = (inflate_huft *)Z_NULL; |
1309 | *m = 0; | 1309 | *m = 0; |
1310 | return Z_OK; | 1310 | return Z_DATA_ERROR; |
1311 | } | 1311 | } |
1312 | 1312 | ||
1313 | 1313 | ||
@@ -1351,6 +1351,7 @@ local int huft_build( | |||
1351 | if ((j = *p++) != 0) | 1351 | if ((j = *p++) != 0) |
1352 | v[x[j]++] = i; | 1352 | v[x[j]++] = i; |
1353 | } while (++i < n); | 1353 | } while (++i < n); |
1354 | n = x[g]; /* set n to length of v */ | ||
1354 | 1355 | ||
1355 | 1356 | ||
1356 | /* Generate the Huffman codes and for each, make the table entries */ | 1357 | /* Generate the Huffman codes and for each, make the table entries */ |