tmp_suning_uos_patched/fs/ubifs
Sidney Amani 56b04e3e8b 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 <seed95@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2012-05-20 20:19:08 +03:00
..
budget.c
commit.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
compress.c
debug.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
debug.h UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
dir.c UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
file.c UBIFS: rename dumping functions 2012-05-16 19:15:56 +03:00
find.c
gc.c
io.c UBIFS: rename dumping functions 2012-05-16 19:15:56 +03:00
ioctl.c
journal.c UBIFS: rename dumping functions 2012-05-16 19:15:56 +03:00
Kconfig UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
key.h
log.c UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
lprops.c UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
lpt_commit.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
lpt.c UBIFS: make ubifs_lpt_init clean-up in case of failure 2012-05-20 20:19:01 +03:00
Makefile UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
master.c UBIFS: rename dumping functions 2012-05-16 19:15:56 +03:00
misc.h
orphan.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
recovery.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
replay.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
sb.c UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
scan.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
shrinker.c
super.c UBIFS: fix memory leak on error path 2012-05-20 20:19:08 +03:00
tnc_commit.c UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
tnc_misc.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
tnc.c UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
ubifs-media.h
ubifs.h UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
xattr.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00