diff options
author | 2015-09-01 00:17:15 +0000 | |
---|---|---|
committer | 2015-09-01 00:17:15 +0000 | |
commit | df8fcf37518e478e5abe14e4e270f153356ced95 (patch) | |
tree | e722bc8389596e26f71dd5b73cfe7fc90a182d81 /sys/kern/subr_disk.c | |
parent | Support deviant but historically blessed practice of accepting (diff) | |
download | wireguard-openbsd-df8fcf37518e478e5abe14e4e270f153356ced95.tar.xz wireguard-openbsd-df8fcf37518e478e5abe14e4e270f153356ced95.zip |
Missing letoh64() when checking value of gh_lba_alt.
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 847fd1f7898..5f60c12db32 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.197 2015/08/31 15:47:51 krw Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.198 2015/09/01 00:17:15 krw Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -690,7 +690,7 @@ readgptlabel(struct buf *bp, void (*strat)(struct buf *), return (EINVAL); } - if (gh.gh_lba_alt >= DL_GETDSIZE(lp)) { + if (letoh64(gh.gh_lba_alt) >= DL_GETDSIZE(lp)) { DPRINTF("alternate header's position is " "bogous\n"); return (EINVAL); |