commit | 812eb258311f89bcd664a34a620f249d54a2cd83 | [log] [tgz] |
---|---|---|
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Tue May 31 08:40:40 2011 +0300 |
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Fri Jun 03 18:12:31 2011 +0300 |
tree | 2b1598190efd598cfbdff30fbca302426f796e3a | |
parent | cf610bf4199770420629d3bc273494bd27ad6c1d [diff] |
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