aboutsummaryrefslogtreecommitdiffstats
path: root/lib/decompress_unlzma.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/decompress_unlzma.c')
-rw-r--r--lib/decompress_unlzma.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/decompress_unlzma.c b/lib/decompress_unlzma.c
index 0be83af62b88..ed7a1fd819f2 100644
--- a/lib/decompress_unlzma.c
+++ b/lib/decompress_unlzma.c
@@ -620,7 +620,7 @@ STATIC inline int INIT unlzma(unsigned char *buf, long in_len,
620 620
621 num_probs = LZMA_BASE_SIZE + (LZMA_LIT_SIZE << (lc + lp)); 621 num_probs = LZMA_BASE_SIZE + (LZMA_LIT_SIZE << (lc + lp));
622 p = (uint16_t *) large_malloc(num_probs * sizeof(*p)); 622 p = (uint16_t *) large_malloc(num_probs * sizeof(*p));
623 if (p == 0) 623 if (p == NULL)
624 goto exit_2; 624 goto exit_2;
625 num_probs = LZMA_LITERAL + (LZMA_LIT_SIZE << (lc + lp)); 625 num_probs = LZMA_LITERAL + (LZMA_LIT_SIZE << (lc + lp));
626 for (i = 0; i < num_probs; i++) 626 for (i = 0; i < num_probs; i++)
@@ -667,13 +667,12 @@ exit_0:
667} 667}
668 668
669#ifdef PREBOOT 669#ifdef PREBOOT
670STATIC int INIT decompress(unsigned char *buf, long in_len, 670STATIC int INIT __decompress(unsigned char *buf, long in_len,
671 long (*fill)(void*, unsigned long), 671 long (*fill)(void*, unsigned long),
672 long (*flush)(void*, unsigned long), 672 long (*flush)(void*, unsigned long),
673 unsigned char *output, 673 unsigned char *output, long out_len,
674 long *posp, 674 long *posp,
675 void(*error)(char *x) 675 void (*error)(char *x))
676 )
677{ 676{
678 return unlzma(buf, in_len - 4, fill, flush, output, posp, error); 677 return unlzma(buf, in_len - 4, fill, flush, output, posp, error);
679} 678}