summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-04-11 17:26:54 +0000
committerjhb <jhb@FreeBSD.org>2006-04-11 17:26:54 +0000
commit19de7c28639a872ddf8e0ae7e4c93570bef86019 (patch)
tree440288b2cbcac11bd87ae3877683b0288de51e25 /sys/boot
parent7eedb7c68d960c0f2a92de91580cb2b17fad2b2e (diff)
downloadFreeBSD-src-19de7c28639a872ddf8e0ae7e4c93570bef86019.zip
FreeBSD-src-19de7c28639a872ddf8e0ae7e4c93570bef86019.tar.gz
Use the proper condition to determine that we matched an filename.
Otherwise, we could match on a filename that had the wrong last character (such as /boot/loaded instead of /boot/loader). PR: kern/95625 Submitted by: Oliver Fromme <olli@secnetix.de> MFC after: 1 month
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/cdboot/cdboot.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/i386/cdboot/cdboot.s b/sys/boot/i386/cdboot/cdboot.s
index 69ac8d4..b40752b 100644
--- a/sys/boot/i386/cdboot/cdboot.s
+++ b/sys/boot/i386/cdboot/cdboot.s
@@ -400,7 +400,7 @@ ff.nextblock: subl $SECTOR_SIZE,rec_size # Adjust size
ff.checkname: lea DIR_NAME(%bx),%di # Address name in record
push %si # Save
repe cmpsb # Compare name
- jcxz ff.match # We have a winner!
+ je ff.match # We have a winner!
pop %si # Restore
jmp ff.nextrec # Keep looking.
ff.match: add $2,%sp # Discard saved %si
OpenPOWER on IntegriCloud