diff options
author | 2021-01-13 23:56:48 +0000 | |
---|---|---|
committer | 2021-01-13 23:56:48 +0000 | |
commit | 73a8717bd162f4cbaea69336ebaa14d018864e71 (patch) | |
tree | 35e7c3d799513c32327c09c7c579dda22d143ec8 | |
parent | put M_ZERO in the right place (diff) | |
download | wireguard-openbsd-73a8717bd162f4cbaea69336ebaa14d018864e71.tar.xz wireguard-openbsd-73a8717bd162f4cbaea69336ebaa14d018864e71.zip |
Make vm_rpc_send_rpci_tx_buf() use the buffer passed in, not the buffer
allocated as part of the softc, though it's always been the same buffer
so far.
ok dlg@
-rw-r--r-- | sys/dev/pv/vmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/vmt.c b/sys/dev/pv/vmt.c index a1883b47fb3..5f54df41c86 100644 --- a/sys/dev/pv/vmt.c +++ b/sys/dev/pv/vmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmt.c,v 1.20 2021/01/13 23:50:21 jmatthew Exp $ */ +/* $OpenBSD: vmt.c,v 1.21 2021/01/13 23:56:48 jmatthew Exp $ */ /* * Copyright (c) 2007 David Crawshaw <david@zentus.com> @@ -1372,7 +1372,7 @@ vm_rpc_send_rpci_tx_buf(struct vmt_softc *sc, const uint8_t *buf, return EIO; } - if (vm_rpc_send(&rpci, sc->sc_rpc_buf, length) != 0) { + if (vm_rpc_send(&rpci, buf, length) != 0) { DPRINTF("%s: unable to send rpci command\n", DEVNAME(sc)); result = EIO; goto out; |