[flashrom] [PATCH] Fix SPI multicommand endless loop
Stefan Reinauer
stepan at coresystems.de
Mon Aug 3 02:08:34 CEST 2009
Carl-Daniel Hailfinger wrote:
> Fix SPI multicommand endless loop in default_spi_send_multicommand.
>
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
>
>
untested, but looks like it makes sense...
Acked-by: Stefan Reinauer <stepan at coresystems.de>
> 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;
> }
>
>
>
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.de • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
More information about the flashrom
mailing list