[flashrom] [PATCH] Fix SPI multicommand endless loop

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Mon Aug 3 01:18:04 CEST 2009


Fix SPI multicommand endless loop in default_spi_send_multicommand.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Index: flashrom-spi_multicommand_loopfix/spi.c
===================================================================
--- flashrom-spi_multicommand_loopfix/spi.c	(Revision 669)
+++ flashrom-spi_multicommand_loopfix/spi.c	(Arbeitskopie)
@@ -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;
 }


-- 
http://www.hailfinger.org/





More information about the flashrom mailing list