summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/cmd/bhyve/block_if.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/src/cmd/bhyve/block_if.c b/usr/src/cmd/bhyve/block_if.c
index 85ad55b05a..8278bf3f92 100644
--- a/usr/src/cmd/bhyve/block_if.c
+++ b/usr/src/cmd/bhyve/block_if.c
@@ -372,8 +372,12 @@ blockif_proc(struct blockif_ctxt *bc, struct blockif_elem *be, uint8_t *buf)
.dfl_num_exts = 1,
.dfl_offset = 0,
.dfl_flags = 0,
- .dfl_exts[0].dfle_start = br->br_offset,
- .dfl_exts[0].dfle_length = br->br_resid
+ .dfl_exts = {
+ {
+ .dfle_start = br->br_offset,
+ .dfle_length = br->br_resid
+ }
+ }
};
if (ioctl(bc->bc_fd, DKIOCFREE, &dfl))