u-boot/drivers/mtd/ubi
Alexander Vickberg c81d8efb51 mtd: ubi: Put MTD device after it is not used
The MTD device reference is dropped via put_mtd_device, however its
field ->index is read and passed to ubi_msg. To fix this, the patch
moves the reference dropping after calling ubi_msg.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Richard Weinberger <richard@nod.at>

Upstream Linux commit: b95f83ab762dd6211351b9140f99f43644076ca8

Signed-off-by: Alexander Vickberg <wickbergster@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
2025-05-05 10:15:43 +02:00
..
attach.c mtd: ubi: annotate fallthrough 2025-04-08 16:23:51 -06:00
block.c drivers: introduce UBI block abstraction 2024-08-08 09:28:00 +02:00
build.c mtd: ubi: Put MTD device after it is not used 2025-05-05 10:15:43 +02:00
crc32.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
crc32defs.h UBI: Add basic UBI support to U-Boot (Part 2/8) 2008-11-19 20:34:39 +01:00
crc32table.h mtd, ubi, ubifs: resync with Linux-3.14 2014-08-25 19:25:55 -04:00
debug.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
debug.h common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
eba.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fastmap-wl.c ubi: fastmap: Implement produce_free_peb() 2018-05-22 11:39:05 +02:00
fastmap.c list: use list_count_nodes() to count list entries 2024-08-30 13:51:38 -06:00
io.c mtd: ubi: Do not zero out EC and VID on ECC-ed NOR flashes 2024-10-15 08:57:49 -06:00
kapi.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
Kconfig mtd: Correct dependency of BLK 2025-01-20 19:26:54 -06:00
Makefile disk: support UBI partitions 2024-08-08 09:28:05 +02:00
misc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
part.c ubi: fix bug creating partitions for non-existent volumes 2025-04-08 06:52:24 +02:00
ubi-media.h ubi: provide a way to skip CRC checks 2019-10-16 05:42:27 +02:00
ubi.h common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
upd.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
vmt.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
vtbl.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
wl.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
wl.h ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00