diff options
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 4e454aefec5..64ddf136069 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.244 2021/06/02 22:44:27 krw Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.245 2021/06/13 13:17:59 krw Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -650,7 +650,6 @@ gpt_chk_hdr(struct gpt_header *gh, struct disklabel *lp) return (EINVAL); if (ghlbastart >= DL_GETDSIZE(lp) || - ghlbaend >= DL_GETDSIZE(lp) || ghpartlba >= DL_GETDSIZE(lp)) return (EINVAL); @@ -671,11 +670,6 @@ gpt_chk_hdr(struct gpt_header *gh, struct disklabel *lp) return (EINVAL); } - if (letoh64(gh->gh_lba_alt) >= DL_GETDSIZE(lp)) { - DPRINTF("alternate header's position is bogus\n"); - return (EINVAL); - } - return 0; } |