From 436dbc4262a9baa6936ef150ecc845af95fae8fc Mon Sep 17 00:00:00 2001 From: Allan Jude Date: Tue, 3 Jul 2018 05:53:27 +0000 Subject: [PATCH] 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 --- stand/common/disk.c | 1 + 1 file changed, 1 insertion(+) 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;