linux/fs/ubifs
Sascha Hauer edec51374b ubifs: Fix wrong memory allocation
In create_default_filesystem() when we allocate the idx node we must use
the idx_node_size we calculated just one line before, not tmp, which
contains completely other data.

Fixes: c4de6d7e43 ("ubifs: Refactor create_default_filesystem()")
Cc: stable@vger.kernel.org # v4.20+
Reported-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Tested-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
2020-01-16 23:36:07 +01:00
..
auth.c
budget.c
commit.c
compress.c
crypto.c
debug.c
debug.h
dir.c
file.c
find.c
gc.c
io.c
ioctl.c ubifs: Add support for FS_ENCRYPT_FL 2020-01-16 23:35:43 +01:00
journal.c ubifs: Fixed missed le64_to_cpu() in journal 2019-11-17 22:21:51 +01:00
Kconfig
key.h
log.c
lprops.c
lpt_commit.c
lpt.c
Makefile
master.c
misc.c
misc.h
orphan.c ubifs: do_kill_orphans: Fix a memory leak bug 2019-11-17 22:22:54 +01:00
recovery.c
replay.c
sb.c ubifs: Fix wrong memory allocation 2020-01-16 23:36:07 +01:00
scan.c
shrinker.c
super.c Revert "ubifs: Fix memory leak bug in alloc_ubifs_info() error path" 2019-11-17 22:22:53 +01:00
tnc_commit.c ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps 2019-11-17 22:22:54 +01:00
tnc_misc.c
tnc.c
ubifs-media.h
ubifs.h
xattr.c