summaryrefslogtreecommitdiff
path: root/sys/dev/pv/hyperv.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2016-10-14 18:32:55 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2016-10-14 18:32:55 +0000
commitfc344322183bb75d15302a2e4a01e50b291ec829 (patch)
treed05934c818e2159e3eef3b2a1bcc10dbf2ab67aa /sys/dev/pv/hyperv.c
parenta04f61a84dc029b00830c6249970fdfac246f2c5 (diff)
The trailing producer index must point to the beginning of the message
Diffstat (limited to 'sys/dev/pv/hyperv.c')
-rw-r--r--sys/dev/pv/hyperv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c
index 1c54dd75e17..fd83b31d06b 100644
--- a/sys/dev/pv/hyperv.c
+++ b/sys/dev/pv/hyperv.c
@@ -1276,7 +1276,7 @@ hv_ring_write(struct hv_ring_data *wrd, struct iovec *iov, int iov_cnt,
for (i = 0; i < iov_cnt; i++)
hv_ring_put(wrd, iov[i].iov_base, iov[i].iov_len);
- indices = (uint64_t)wrd->rd_prod << 32;
+ indices = (uint64_t)oprod << 32;
hv_ring_put(wrd, (uint8_t *)&indices, sizeof(indices));
membar_sync();