diff options
author | Gregory CLEMENT <gregory.clement@bootlin.com> | 2019-10-24 16:13:09 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-10-25 12:10:25 +0200 |
commit | 15f794bd977a0135328fbdd8a83cc64c1d267b39 (patch) | |
tree | a7e0d75aacf02d9bd8b202d6d0569dfea246e20f /drivers/spi/spi-pxa2xx.c | |
parent | spi: pxa2xx: Drop extra check of platform_get_resource() returned value (diff) | |
download | linux-15f794bd977a0135328fbdd8a83cc64c1d267b39.tar.xz linux-15f794bd977a0135328fbdd8a83cc64c1d267b39.zip |
spi: Fix NULL pointer when setting SPI_CS_HIGH for GPIO CS
Even if the flag use_gpio_descriptors is set, it is possible that
cs_gpiods was not allocated, which leads to a kernel crash.
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Fixes: 3e5ec1db8bfe ("spi: Fix SPI_CS_HIGH setting when using native and GPIO CS")
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/r/20191024141309.22434-1-gregory.clement@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
0 files changed, 0 insertions, 0 deletions