summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/tnc.c
diff options
context:
space:
mode:
authorArtem Bityutskiy2011-05-31 07:40:40 +0200
committerArtem Bityutskiy2011-06-03 17:12:31 +0200
commit812eb258311f89bcd664a34a620f249d54a2cd83 (patch)
tree2b1598190efd598cfbdff30fbca302426f796e3a /fs/ubifs/tnc.c
parentUBIFS: fix shrinker object count reports (diff)
downloadkernel-qcow2-linux-812eb258311f89bcd664a34a620f249d54a2cd83.tar.gz
kernel-qcow2-linux-812eb258311f89bcd664a34a620f249d54a2cd83.tar.xz
kernel-qcow2-linux-812eb258311f89bcd664a34a620f249d54a2cd83.zip
UBIFS: fix memory leak on error path
UBIFS leaks memory on error path in 'ubifs_jnl_update()' in case of write failure because it forgets to free the 'struct ubifs_dent_node *dent' object. Although the object is small, the alignment can make it large - e.g., 2KiB if the min. I/O unit is 2KiB. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Cc: stable@kernel.org
Diffstat (limited to 'fs/ubifs/tnc.c')
0 files changed, 0 insertions, 0 deletions