From: Artem Bityutskiy Date: Fri, 6 May 2011 14:08:56 +0000 (+0300) Subject: UBIFS: fix a rare memory leak in ro to rw remounting path X-Git-Tag: v2.6.39.1~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=817db79f05be31b511c24c2bfc731b934f46262a;p=pandora-kernel.git UBIFS: fix a rare memory leak in ro to rw remounting path commit eaeee242c531cd4b0a4a46e8b5dd7ef504380c42 upstream. When re-mounting from R/O mode to R/W mode and the LEB count in the superblock is not up-to date, because for the underlying UBI volume became larger, we re-write the superblock. We allocate RAM for these purposes, but never free it. So this is a memory leak, although very rare one. Signed-off-by: Artem Bityutskiy Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed