From 5b2f52fa6caab4bda5aaf8b6128eb3044a930c47 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Mon, 3 Aug 2009 09:35:20 +0000 Subject: Fix SPI multicommand endless loop in default_spi_send_multicommand Corresponding to flashrom svn r670. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Stefan Reinauer --- spi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'spi.c') diff --git a/spi.c b/spi.c index c177fb06e..b2812ba72 100644 --- a/spi.c +++ b/spi.c @@ -147,6 +147,7 @@ int default_spi_send_multicommand(struct spi_command *spicommands) while ((spicommands->writecnt || spicommands->readcnt) && !result) { result = spi_send_command(spicommands->writecnt, spicommands->readcnt, spicommands->writearr, spicommands->readarr); + spicommands++; } return result; } -- cgit v1.2.3