mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + unlzo-fix-input-buffer-free.patch added to -mm tree
@ 2011-11-17 22:11 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2011-11-17 22:11 UTC (permalink / raw)
  To: mm-commits; +Cc: s.hauer, lasse.collin


The patch titled
     Subject: unlzo: Fix input buffer free
has been added to the -mm tree.  Its filename is
     unlzo-fix-input-buffer-free.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
From: Sascha Hauer <s.hauer@pengutronix.de>
Subject: unlzo: Fix input buffer free

unlzo modifies the pointer to in_buf, so we have to free the original
buffer, not the modified pointer.  This only happens when a fill function
is passed, a case which is currently unused in the kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Lasse Collin <lasse.collin@tukaani.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 lib/decompress_unlzo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN lib/decompress_unlzo.c~unlzo-fix-input-buffer-free lib/decompress_unlzo.c
--- a/lib/decompress_unlzo.c~unlzo-fix-input-buffer-free
+++ a/lib/decompress_unlzo.c
@@ -279,7 +279,7 @@ STATIC inline int INIT unlzo(u8 *input, 
 	ret = 0;
 exit_2:
 	if (!input)
-		free(in_buf);
+		free(in_buf_save);
 exit_1:
 	if (!output)
 		free(out_buf);
_
Subject: Subject: unlzo: Fix input buffer free

Patches currently in -mm which might be from s.hauer@pengutronix.de are

origin.patch
linux-next.patch
unlzo-fix-input-buffer-free.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-17 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-17 22:11 + unlzo-fix-input-buffer-free.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).