summaryrefslogtreecommitdiffstats
path: root/spi.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-03 09:35:20 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-03 09:35:20 +0000
commit5b2f52fa6caab4bda5aaf8b6128eb3044a930c47 (patch)
treed76cdee91b7051e5edc1423169874d0755c2d95e /spi.c
parent22ea8cd503b65a6a5983e2db71b54dfcd89b3c74 (diff)
downloadflashrom-5b2f52fa6caab4bda5aaf8b6128eb3044a930c47.tar.gz
flashrom-5b2f52fa6caab4bda5aaf8b6128eb3044a930c47.tar.bz2
flashrom-5b2f52fa6caab4bda5aaf8b6128eb3044a930c47.zip
Fix SPI multicommand endless loop in default_spi_send_multicommand
Corresponding to flashrom svn r670. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'spi.c')
-rw-r--r--spi.c1
1 files changed, 1 insertions, 0 deletions
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;
}