Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-09-10 19:19:54 +0200
committerTakashi Iwai <tiwai@suse.de>2019-09-10 19:20:00 +0200
commit7dc1b1c579d1f1dd6615b5bfe51eb743745970df (patch)
tree485c4f0ff96f0d4cf65a156d83ffc387cccacddb
parent592f3da8b87d08fd4aec4461344b8fa5ba481e33 (diff)
spi: bcm2835aux: remove dangerous uncontrolled read of fifo
(bsc#1051510). suse-commit: 67ca98d2fe4ed0a15449e4bc12e873e19f8cbbdb
-rw-r--r--drivers/spi/spi-bcm2835aux.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/spi/spi-bcm2835aux.c b/drivers/spi/spi-bcm2835aux.c
index dfe78b1ffd6b..7606225be15a 100644
--- a/drivers/spi/spi-bcm2835aux.c
+++ b/drivers/spi/spi-bcm2835aux.c
@@ -194,13 +194,6 @@ static void bcm2835aux_spi_transfer_helper(struct bcm2835aux_spi *bs)
BCM2835_AUX_SPI_STAT_TX_FULL))) {
bcm2835aux_wr_fifo(bs);
}
-
- /* and check if we have reached "done" */
- while (bs->rx_len &&
- (!(bcm2835aux_rd(bs, BCM2835_AUX_SPI_STAT) &
- BCM2835_AUX_SPI_STAT_BUSY))) {
- bcm2835aux_rd_fifo(bs);
- }
}
static irqreturn_t bcm2835aux_spi_interrupt(int irq, void *dev_id)