summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristophe Kerello <[email protected]>2019-08-02 15:46:29 +0200
committerJagan Teki <[email protected]>2019-09-16 08:09:22 +0530
commitdfe72d081d4eda0c0788dc5db69de3abbec1b857 (patch)
tree0b73466d5be7db114ce20dc51dccfc7c1020b84b /include/linux
parent07a5cb9d3b9bf9bca9ca207b82f92eac73cbdda8 (diff)
spi: soft_spi: Fix data abort if slave is not probed
In case spi_get_bus_and_cs callback is used, spi bus is first probed then slave devices are probed. To avoid a data abort in soft_spi probe function, we need to check that (slave != NULL). If slave is NULL, cs_flags and clk_flags will be initialized with respectively GPIOD_ACTIVE_LOW and 0. Signed-off-by: Christophe Kerello <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions