projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
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
|
blame
|
history
diff --git
a/lib/decompress_unlzo.c
b/lib/decompress_unlzo.c
index 5a7a2adf4c4c2aa8d64d881e0ff1739acbe8782c..4531294fa62f2cb5de592178ddca2c0afc223558 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);