1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-29 16:03:47 +02:00

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>
This commit is contained in:
Carl-Daniel Hailfinger 2009-08-03 09:35:20 +00:00
parent 22ea8cd503
commit 5b2f52fa6c

1
spi.c
View File

@ -147,6 +147,7 @@ int default_spi_send_multicommand(struct spi_command *spicommands)
while ((spicommands->writecnt || spicommands->readcnt) && !result) { while ((spicommands->writecnt || spicommands->readcnt) && !result) {
result = spi_send_command(spicommands->writecnt, spicommands->readcnt, result = spi_send_command(spicommands->writecnt, spicommands->readcnt,
spicommands->writearr, spicommands->readarr); spicommands->writearr, spicommands->readarr);
spicommands++;
} }
return result; return result;
} }