projects
/
linux-flexiantxendom0-3.2.10.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c755201
)
unlzo: fix input buffer free
author
Sascha Hauer <s.hauer@pengutronix.de>
Fri, 13 Jan 2012 01:21:01 +0000
(17:21 -0800)
committer
Linus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Jan 2012 04:13:13 +0000
(20:13 -0800)
unlzo modifies the pointer to in_buf, so we have to free the original
buffer, not the modified pointer.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Lasse Collin <lasse.collin@tukaani.org>
Cc: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/decompress_unlzo.c
patch
|
blob
|
history
diff --git
a/lib/decompress_unlzo.c
b/lib/decompress_unlzo.c
index
5a7a2ad
..
4531294
100644
(file)
--- a/
lib/decompress_unlzo.c
+++ b/
lib/decompress_unlzo.c
@@
-279,7
+279,7
@@
STATIC inline int INIT unlzo(u8 *input, int in_len,
ret = 0;
exit_2:
if (!input)
- free(in_buf);
+ free(in_buf_save);
exit_1:
if (!output)
free(out_buf);