From: Sidney Amani Date: Fri, 18 May 2012 11:32:37 +0000 (+0300) Subject: UBIFS: fix memory leak on error path X-Git-Tag: v3.5-rc1~136^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56b04e3e8b5cbf71c23a739f34f9a9437afa41fb;p=pandora-kernel.git UBIFS: fix memory leak on error path UBIFS leaks memory on error path in 'mount_ubifs()'. In case of failure in 'ubifs_fixup_free_space()', it does not call 'ubifs_lpt_free()' whereas LPT data structures can potentially be allocated. The amount of memory leaked can be quite high -- see 'ubifs_lpt_init()'. The bug was introduced when moving the LPT initialisation earlier in the mount process (commit '781c5717a95a74b294beb38b8276943b0f8b5bb4'). Signed-off-by: Sidney Amani Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed