From 5b2f52fa6caab4bda5aaf8b6128eb3044a930c47 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Date: Mon, 3 Aug 2009 09:35:20 +0000 Subject: [PATCH] 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> --- spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spi.c b/spi.c index c177fb0..b2812ba 100644 --- a/spi.c +++ b/spi.c @@ -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; } -- GitLab