aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;