linux/drivers/mtd/ubi
Li Nan adbf4c4954 ubi: block: fix memleak in ubiblock_create()
If idr_alloc() fails, dev->gd will be put after goto out_cleanup_disk in
ubiblock_create(), but dev->gd has not been assigned yet at this time, and
'gd' will not be put anymore. Fix it by putting 'gd' directly.

Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2024-01-06 23:52:51 +01:00
..
attach.c mtd: Convert fallthrough comments into statements 2020-03-30 10:14:54 +02:00
block.c ubi: block: fix memleak in ubiblock_create() 2024-01-06 23:52:51 +01:00
build.c ubi: fastmap: Add module parameter to control reserving filling pool PEBs 2023-10-28 23:15:44 +02:00
cdev.c ubi: fastmap: Add control in 'UBI_IOCATT' ioctl to reserve PEBs for filling pools 2023-10-28 23:16:00 +02:00
debug.c ubi: Reserve sufficient buffer length for the input mask 2024-01-06 23:45:44 +01:00
debug.h ubi: Add six fault injection type for testing 2024-01-06 23:41:40 +01:00
eba.c ubi: fastmap: Wait until there are enough free PEBs before filling pools 2023-10-28 22:43:40 +02:00
fastmap-wl.c ubi: fastmap: Fix lapsed wear leveling for first 64 PEBs 2023-10-28 23:14:55 +02:00
fastmap.c ubi: fastmap: Wait until there are enough free PEBs before filling pools 2023-10-28 22:43:40 +02:00
gluebi.c mtd: ubi: gluebi: Fix misnamed function parameter documentation 2020-11-20 12:37:32 +01:00
io.c ubi: Add six fault injection type for testing 2024-01-06 23:41:40 +01:00
kapi.c mtd: ubi: block: wire-up device parent 2023-02-13 22:24:10 +01:00
Kconfig ubi: Use the fault injection framework to enhance the fault injection capability 2024-01-06 23:38:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
misc.c ubi: use correct names in function kernel-doc comments 2023-02-05 22:36:39 +01:00
ubi-media.h ubi: ubi-media.h: Fix comment typo 2022-09-21 11:12:18 +02:00
ubi.h ubi: Add six fault injection type for testing 2024-01-06 23:41:40 +01:00
upd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
vmt.c ubi: Fix possible null-ptr-deref in ubi_free_volume() 2023-02-02 21:13:44 +01:00
vtbl.c ubi: Free the normal volumes in error paths of ubi_attach_mtd_dev() 2020-01-16 23:35:59 +01:00
wl.c ubi: fastmap: Get wl PEB even ec beyonds the 'max' if free PEBs are run out 2023-10-28 23:07:54 +02:00
wl.h ubi: fastmap: Fix lapsed wear leveling for first 64 PEBs 2023-10-28 23:14:55 +02:00