mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-29 07:53:44 +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:
parent
22ea8cd503
commit
5b2f52fa6c
1
spi.c
1
spi.c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user