[PATCH 0/1] Fix NULL pointer dereference

From: Pelle Nilsson
Date: Thu Apr 09 2015 - 11:13:15 EST


As I reported earlier, spi-altera driver is broken and causes a kernel
panic due to a NULL pointer dereference during first SPI
transaction. On a closer look, it turned out that the setup_transfer()
bitbang callback is mandatory when the txrx_bufs() callback is
present. It was therefore an error to remove it in commit
30af9b558a56. This patch simply adds back an empty implementation of
the callback.

Pelle Nilsson (1):
spi: altera: Add empty implementation of setup_transfer callback

drivers/spi/spi-altera.c | 6 ++++++
1 file changed, 6 insertions(+)

--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/