diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-06-27 12:32:40 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-06-27 12:32:40 +0000 |
commit | cad74ec91eb63f441ad9cea99cefb4824f666816 (patch) | |
tree | 470e47d0ce9a3cf3113a805c03e98da7492fba87 /sys/dev/pv | |
parent | c5c61db795cc5e44eaf86d5b9b621141f43bf973 (diff) |
Correct the order of memset arguments.
ok mikeb@
Diffstat (limited to 'sys/dev/pv')
-rw-r--r-- | sys/dev/pv/hyperv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c index 7f0bfcdf867..16d2d18413d 100644 --- a/sys/dev/pv/hyperv.c +++ b/sys/dev/pv/hyperv.c @@ -715,13 +715,13 @@ hv_vmbus_connect(struct hv_softc *sc) goto errout; } - memset(&cmd, sizeof(cmd), 0); + memset(&cmd, 0, sizeof(cmd)); cmd.hdr.message_type = HV_CHANMSG_INITIATED_CONTACT; cmd.interrupt_page = (uint64_t)epa; cmd.monitor_page_1 = (uint64_t)mpa1; cmd.monitor_page_2 = (uint64_t)mpa2; - memset(&rsp, sizeof(rsp), 0); + memset(&rsp, 0, sizeof(rsp)); for (i = 0; versions[i] != HV_VMBUS_VERSION_INVALID; i++) { cmd.vmbus_version_requested = versions[i]; |