Re: [PATCH] mtd: spinand: fix NULL pointer dereference in spinand_support_vendor_ops()
From: Miquel Raynal
Date: Fri Feb 06 2026 - 08:42:33 EST
On Fri, 06 Feb 2026 14:07:52 +0530, Md Sadre Alam wrote:
> The spinand_support_vendor_ops() helper unconditionally dereferences
> info->vendor_ops. For chips that do not define vendor_ops, this pointer
> is NULL, leading to a kernel panic during probe:
>
> Unable to handle kernel NULL pointer dereference at virtual address
> 0000000000000008
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: spinand: fix NULL pointer dereference in spinand_support_vendor_ops()
commit: e82269e7cb93a2d33368418be4ee56015b4adc27
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl