diff options
author | Gregory CLEMENT <[email protected]> | 2019-10-24 16:13:09 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2019-10-25 11:10:25 +0100 |
commit | 15f794bd977a0135328fbdd8a83cc64c1d267b39 (patch) | |
tree | a7e0d75aacf02d9bd8b202d6d0569dfea246e20f /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
parent | 77c544d243f3b0d1ae3487ebb170c07c79734fe7 (diff) |
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" <[email protected]>
Fixes: 3e5ec1db8bfe ("spi: Fix SPI_CS_HIGH setting when using native and GPIO CS")
Signed-off-by: Gregory CLEMENT <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Cc: <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions