Commit 5b2f52fa authored by Carl-Daniel Hailfinger's avatar Carl-Daniel Hailfinger
Browse files

Fix SPI multicommand endless loop in default_spi_send_multicommand


Corresponding to flashrom svn r670.
Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: default avatarStefan Reinauer <stepan@coresystems.de>
parent 22ea8cd5
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment