spi: davinci: fix a NULL pointer dereference
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 10 Aug 2018 09:13:52 +0000 (11:13 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 10 Aug 2018 10:48:37 +0000 (11:48 +0100)
commit563a53f3906a6b43692498e5b3ae891fac93a4af
tree3612714b86b21bf104ffc68a8ccc7c672eb015cc
parent66b19d762378785d1568b5650935205edfeb0503
spi: davinci: fix a NULL pointer dereference

On non-OF systems spi->controlled_data may be NULL. This causes a NULL
pointer derefence on dm365-evm.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-davinci.c