Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2018 15:30:48 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327877 - head/usr.sbin/efibootmgr
Message-ID:  <201801121530.w0CFUmE6095683@repo.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: imp
Date: Fri Jan 12 15:30:48 2018
New Revision: 327877
URL: https://svnweb.freebsd.org/changeset/base/327877

Log:
  Fix error in determining the next available boot slot.
  
  Sponsored by: Netflix

Modified:
  head/usr.sbin/efibootmgr/efibootmgr.c

Modified: head/usr.sbin/efibootmgr/efibootmgr.c
==============================================================================
--- head/usr.sbin/efibootmgr/efibootmgr.c	Fri Jan 12 14:01:38 2018	(r327876)
+++ head/usr.sbin/efibootmgr/efibootmgr.c	Fri Jan 12 15:30:48 2018	(r327877)
@@ -563,7 +563,7 @@ make_next_boot_var_name(void)
 	} else {
 		/* now just run the list looking for the first hole */
 		for (i = 0; i < cnt - 1 && next_free == 0; i++)
-			if (vals[i] != vals[i + 1] + 1)
+			if (vals[i] + 1 != vals[i + 1])
 				next_free = vals[i] + 1;
 		if (next_free == 0)
 			next_free = vals[cnt - 1] + 1;



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201801121530.w0CFUmE6095683>