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
This commit is contained in:
Allan Jude 2018-07-03 05:53:27 +00:00
parent 44fd76e10c
commit 436dbc4262
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335883

View File

@ -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;