From: Sascha Hauer Date: Fri, 13 Jan 2012 01:21:01 +0000 (-0800) Subject: unlzo: fix input buffer free X-Git-Tag: v3.3-rc1~81^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=35f1526845a9d804206883e19bd257d3dcef758f;p=~emulex%2Finfiniband.git unlzo: fix input buffer free unlzo modifies the pointer to in_buf, so we have to free the original buffer, not the modified pointer. Signed-off-by: Sascha Hauer Cc: Lasse Collin Cc: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c index 5a7a2adf4c4..4531294fa62 100644 --- 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);