summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2011-03-17 21:44:10 +0000
committerkrw <krw@openbsd.org>2011-03-17 21:44:10 +0000
commit5a1ec569b920057576d1fc93d7adad548daf2218 (patch)
tree1d9396e03aec83bd647f025432e559fd389690d2 /sys/kern/subr_disk.c
parentadd missing .El; (diff)
downloadwireguard-openbsd-5a1ec569b920057576d1fc93d7adad548daf2218.tar.xz
wireguard-openbsd-5a1ec569b920057576d1fc93d7adad548daf2218.zip
Uncommitted bits. Spotted by deraadt@, who theorizes I have insuffient
sushi level.
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index d3e7431af92..b9bc9a91d83 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.115 2011/03/14 17:20:00 krw Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.116 2011/03/17 21:44:10 krw Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -400,7 +400,7 @@ readdoslabel(struct buf *bp, void (*strat)(struct buf *),
* Read dos partition table, follow extended partitions.
* Map the partitions to disklabel entries i-p
*/
- while (wander && loop < 8) {
+ while (wander && loop < DOS_MAXEBR) {
loop++;
wander = 0;
if (part_blkno < extoff)