aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2018-07-03 05:53:27 +0000
committerAllan Jude <allanjude@FreeBSD.org>2018-07-03 05:53:27 +0000
commit436dbc4262a9baa6936ef150ecc845af95fae8fc (patch)
tree02d7299c337d7fc72d35f3ca745b552228751e3d
parent44fd76e10c0ddc5bc4c8a4b56948b7aebf372b4c (diff)
downloadsrc-436dbc4262a9baa6936ef150ecc845af95fae8fc.tar.gz
src-436dbc4262a9baa6936ef150ecc845af95fae8fc.zip
stand/common/disk.c: dev->d_offset still needs to be set to 0
With r335868, I thought this was no longer necessary. I was wrong. Reported by: ian Sponsored by: Klara Systems
Notes
Notes: svn path=/head/; revision=335883
-rw-r--r--stand/common/disk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stand/common/disk.c b/stand/common/disk.c
index 68906fa63545..d6ef08100f12 100644
--- a/stand/common/disk.c
+++ b/stand/common/disk.c
@@ -244,6 +244,7 @@ disk_open(struct disk_devdesc *dev, uint64_t mediasize, u_int sectorsize)
partdev.d_slice = -1;
partdev.d_partition = -1;
+ dev->d_offset = 0;
table = NULL;
slice = dev->d_slice;
partition = dev->d_partition;