summaryrefslogtreecommitdiff
path: root/spi.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-08-03 09:35:20 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-08-03 09:35:20 +0000
commit90e95c4c52828b43f5a494c158c0dfd2e31a42d2 (patch)
treed76cdee91b7051e5edc1423169874d0755c2d95e /spi.c
parent73e0c6180ac35dbd9c111ec583d8d774afa854c8 (diff)
downloadflashrom-90e95c4c52828b43f5a494c158c0dfd2e31a42d2.tar.gz
Fix SPI multicommand endless loop in default_spi_send_multicommand.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@670 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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 c177fb0..b2812ba 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;
}