[PATCH v3 1/3] mtd: nand: pxa3xx: Pass valid dev to dev_err()
Stefan Roese
stefan.roese at mailbox.org
Wed Jun 10 14:21:19 CEST 2026
On 12/19/25 11:59, Chris Packham wrote:
> info->controller.active is not initialised so the dev_err() call ends up
> dereferencing a null pointer causing a crash instead of outputting the
> error. Add a dev member to struct pxa3xx_nand_info and use that instead
> of info->controller.active->mtd.dev.
>
> Fixes: 661c98121d49 ("mtd: nand: pxa3xx: Fix not calling dev_xxx with a device")
> Signed-off-by: Chris Packham <judge.packham at gmail.com>
Applied to u-boot-marvell/next
Thanks,
Stefan
More information about the U-Boot
mailing list