aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 93986f879b09..2be394d3bc59 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1039,6 +1039,8 @@ static int spi_map_msg(struct spi_controller *ctlr, struct spi_message *msg)
1039 if (max_tx || max_rx) { 1039 if (max_tx || max_rx) {
1040 list_for_each_entry(xfer, &msg->transfers, 1040 list_for_each_entry(xfer, &msg->transfers,
1041 transfer_list) { 1041 transfer_list) {
1042 if (!xfer->len)
1043 continue;
1042 if (!xfer->tx_buf) 1044 if (!xfer->tx_buf)
1043 xfer->tx_buf = ctlr->dummy_tx; 1045 xfer->tx_buf = ctlr->dummy_tx;
1044 if (!xfer->rx_buf) 1046 if (!xfer->rx_buf)