diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-10-14 18:32:55 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-10-14 18:32:55 +0000 |
commit | fc344322183bb75d15302a2e4a01e50b291ec829 (patch) | |
tree | d05934c818e2159e3eef3b2a1bcc10dbf2ab67aa /sys/dev/pv/hyperv.c | |
parent | a04f61a84dc029b00830c6249970fdfac246f2c5 (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.c | 2 |
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(); |