[PATCH v2 3/3] mtd: maps: vmu-flash: Fix NULL pointer dereference in initialization

Miquel Raynal miquel.raynal at bootlin.com
Mon Apr 27 05:35:25 PDT 2026


On 27/04/2026 at 13:47:50 +02, Florian Fuchs <fuchsfl at gmail.com> wrote:

> 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.
>
> Signed-off-by: Florian Fuchs <fuchsfl at gmail.com>
> ---

For how long as this been broken? Is it really used?

Anyway, also here you will need to Cc stable and add a fixes tag.

Thanks,
Miquèl



More information about the linux-mtd mailing list