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>
diff --git a/spi.c b/spi.c
index c177fb0..b2812ba 100644
--- a/spi.c
+++ b/spi.c
@@ -147,6 +147,7 @@
while ((spicommands->writecnt || spicommands->readcnt) && !result) {
result = spi_send_command(spicommands->writecnt, spicommands->readcnt,
spicommands->writearr, spicommands->readarr);
+ spicommands++;
}
return result;
}