]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: aspeed: Fix an IS_ERR() vs NULL bug in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 17 Oct 2025 16:04:34 +0000 (19:04 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 17 Oct 2025 16:21:03 +0000 (17:21 +0100)
commit0cc08c8130ac8f74419f99fe707dc193b7f79d86
tree2f2455d6745d33534c800ca952cfb3dc1446eb23
parentd77daa49085b067137d0adbe3263f75a7ee13a1b
spi: aspeed: Fix an IS_ERR() vs NULL bug in probe()

The platform_get_resource() function doesn't return error pointers, it
returns NULL on error.  Update the error checking to match.

Fixes: 64d87ccfae33 ("spi: aspeed: Only map necessary address window region")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aPJpEnfK31pHz8_w@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-aspeed-smc.c