Yang Yingliang 10f5372196 spi: spi-fsl-qspi: check return value after calling platform_get_resource_byname()
[ Upstream commit a2b331ac11e1cac56f5b7d367e9f3c5796deaaed ]

It will cause null-ptr-deref if platform_get_resource_byname() returns NULL,
we need check the return value.

Fixes: 858e26a515c2 ("spi: spi-fsl-qspi: Reduce devm_ioremap size to 4 times AHB buffer size")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220505093954.1285615-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:22:55 +02:00
..
2021-07-20 13:34:05 +01:00
2020-10-08 23:00:06 +01:00
2021-09-01 15:25:28 -07:00
2022-04-08 14:22:53 +02:00
2020-10-24 10:33:08 -07:00
2021-08-26 12:09:38 +01:00
2021-09-27 12:59:15 +01:00