Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Apr 2013 09:10:36 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249719 - head/sys/boot/common
Message-ID:  <201304210910.r3L9AaHr024233@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Sun Apr 21 09:10:35 2013
New Revision: 249719
URL: http://svnweb.freebsd.org/changeset/base/249719

Log:
  Since we didn't break the loop, we should set i to -1 to start from the
  beginning.
  
  Submitted by:	Steven Hartland
  MFC after:	1 week

Modified:
  head/sys/boot/common/module.c

Modified: head/sys/boot/common/module.c
==============================================================================
--- head/sys/boot/common/module.c	Sun Apr 21 08:35:38 2013	(r249718)
+++ head/sys/boot/common/module.c	Sun Apr 21 09:10:35 2013	(r249719)
@@ -289,7 +289,8 @@ file_load(char *filename, vm_offset_t de
 	    break;
 	} else if (last_file_format == i && i != 0) {
 	    /* Restart from the beginning */
-	    last_file_format = i = 0;
+	    i = -1;
+	    last_file_format = 0;
 	    fp = NULL;
 	    continue;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304210910.r3L9AaHr024233>