linux-sg2042/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
..
Kconfig UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
Makefile UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +03:00
budget.c writeback: Add a 'reason' to wb_writeback_work 2011-10-31 00:33:36 +08:00
commit.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
compress.c UBIFS: fix sparse warnings 2008-12-31 14:13:24 +02:00
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 UBIFS: introduce a separate structure for budgeting info 2011-05-13 19:23:53 +03:00
gc.c UBIFS: synchronize write-buffer before switching to the next bud 2011-05-16 10:31:41 +03:00
io.c UBIFS: rename dumping functions 2012-05-16 19:15:56 +03:00
ioctl.c vfs: mnt_drop_write_file() 2012-01-03 22:52:40 -05:00
journal.c UBIFS: rename dumping functions 2012-05-16 19:15:56 +03:00
key.h UBIFS: mark unused key objects as invalid 2010-08-30 10:19:08 +03:00
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.c UBIFS: make ubifs_lpt_init clean-up in case of failure 2012-05-20 20:19:01 +03:00
lpt_commit.c UBIFS: get rid of dbg_err 2012-05-16 20:11:23 +03:00
master.c UBIFS: rename dumping functions 2012-05-16 19:15:56 +03:00
misc.h UBIFS: introduce more I/O helpers 2011-07-04 10:54:33 +03:00
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 UBIFS: fix shrinker object count reports 2011-06-03 18:12:24 +03:00
super.c UBIFS: fix memory leak on error path 2012-05-20 20:19:08 +03:00
tnc.c UBIFS: remove Kconfig debugging option 2012-05-16 19:53:46 +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
ubifs-media.h UBIFS: add a superblock flag for free space fix-up 2011-05-16 14:12:14 +03:00
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