diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-08-03 09:35:20 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-08-03 09:35:20 +0000 |
commit | 5b2f52fa6caab4bda5aaf8b6128eb3044a930c47 (patch) | |
tree | d76cdee91b7051e5edc1423169874d0755c2d95e /spi.c | |
parent | 22ea8cd503b65a6a5983e2db71b54dfcd89b3c74 (diff) | |
download | flashrom-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |