projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66b19d7
)
spi: davinci: fix a NULL pointer dereference
author
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Fri, 10 Aug 2018 09:13:52 +0000
(11:13 +0200)
committer
Mark Brown
<broonie@kernel.org>
Fri, 10 Aug 2018 10:48:37 +0000
(11:48 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-davinci.c
b/drivers/spi/spi-davinci.c
index
60d59b0
..
4ffc0f4
100644
(file)
--- a/
drivers/spi/spi-davinci.c
+++ b/
drivers/spi/spi-davinci.c
@@
-217,7
+217,7
@@
static void davinci_spi_chipselect(struct spi_device *spi, int value)
pdata = &dspi->pdata;
/* program delay transfers if tx_delay is non zero */
- if (spicfg->wdelay)
+ if (spicfg
&& spicfg
->wdelay)
spidat1 |= SPIDAT1_WDEL;
/*