svn commit: r250043 - stable/9/sys/boot/common

Andrey V. Elsukov ae at FreeBSD.org
Mon Apr 29 10:20:46 UTC 2013


Author: ae
Date: Mon Apr 29 10:20:46 2013
New Revision: 250043
URL: http://svnweb.freebsd.org/changeset/base/250043

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

Modified:
  stable/9/sys/boot/common/module.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/boot/   (props changed)

Modified: stable/9/sys/boot/common/module.c
==============================================================================
--- stable/9/sys/boot/common/module.c	Mon Apr 29 08:21:32 2013	(r250042)
+++ stable/9/sys/boot/common/module.c	Mon Apr 29 10:20:46 2013	(r250043)
@@ -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;
 	}


More information about the svn-src-stable mailing list