Files
linux/drivers
Felix Gu 888a0a802c spi: wpcm-fiu: Fix potential NULL pointer dereference in wpcm_fiu_probe()
platform_get_resource_byname() can return NULL, which would cause a crash
when passed the pointer to resource_size().

Move the fiu->memory_size assignment after the error check for
devm_ioremap_resource() to prevent the potential NULL pointer dereference.

Fixes: 9838c18247 ("spi: wpcm-fiu: Add direct map support")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: J. Neuschäfer <j.ne@posteo.net>
Link: https://patch.msgid.link/20260212-wpcm-v1-1-5b7c4f526aac@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2026-02-13 17:08:24 +00:00
..
2026-01-08 08:47:32 -08:00
2025-11-27 18:11:43 -08:00
2026-01-15 07:29:14 +00:00
2026-01-16 16:42:41 +01:00
2026-01-11 06:09:11 -10:00