diff options
author | Marek Vasut | 2016-09-26 14:14:53 +0200 |
---|---|---|
committer | Mark Brown | 2016-09-26 09:08:46 -0700 |
commit | f13d4e189d209af0f552e9900acd06ee4a35e601 (patch) | |
tree | fd296df6645eb783150cac054f698331504a6980 /arch/c6x | |
parent | 15ca92156e6242060dff91c8d8e7fe7ae82d424a (diff) |
spi: imx: Gracefully handle NULL master->cs_gpios
It is possible that master->cs_gpios is NULL after spi_bitbang_start(),
this happens if the master has no CS GPIOs specified in DT. Check for
this case after spi_bitbang_start() to prevent NULL pointer dereference
in the subsequent for loop, which accesses the master->cs_gpios field.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Martin Kaiser <martin@kaiser.cx>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'arch/c6x')
0 files changed, 0 insertions, 0 deletions