Files
linux-stable-mirror/drivers/mtd/maps
Florian FuchsandGreg Kroah-Hartman 0db62da830 mtd: maps: vmu-flash: fix NULL pointer dereference in initialization
commit 357e3b8e3a upstream.

The mtd_info contains a struct device, which must be linked to its
parent. Without this, the initialization of the MTD fails with a NULL
pointer dereference.

Fixes: 47a72688fa ("mtd: flash mapping support for Dreamcast VMU.")
Cc: stable@vger.kernel.org
Signed-off-by: Florian Fuchs <fuchsfl@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-24 15:55:03 +02:00
..