[flashrom] [commit] r670 - trunk

svn at flashrom.org svn at flashrom.org
Mon Aug 3 11:35:20 CEST 2009


Author: hailfinger
Date: 2009-08-03 11:35:20 +0200 (Mon, 03 Aug 2009)
New Revision: 670

Modified:
   trunk/spi.c
Log:
Fix SPI multicommand endless loop in default_spi_send_multicommand.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Stefan Reinauer <stepan at coresystems.de>


Modified: trunk/spi.c
===================================================================
--- trunk/spi.c	2009-07-30 13:32:26 UTC (rev 669)
+++ trunk/spi.c	2009-08-03 09:35:20 UTC (rev 670)
@@ -147,6 +147,7 @@
 	while ((spicommands->writecnt || spicommands->readcnt) && !result) {
 		result = spi_send_command(spicommands->writecnt, spicommands->readcnt,
 					  spicommands->writearr, spicommands->readarr);
+		spicommands++;
 	}
 	return result;
 }





More information about the flashrom mailing list