summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruebayasi <uebayasi@openbsd.org>2016-02-07 12:19:14 +0000
committeruebayasi <uebayasi@openbsd.org>2016-02-07 12:19:14 +0000
commiteed8831cd2c7bec2928d9f4e6bfbd0628a415bf6 (patch)
tree9254ba9a97a511c83809f8b717ffe11b75260262
parentRemove a too strict assertion. (diff)
downloadwireguard-openbsd-eed8831cd2c7bec2928d9f4e6bfbd0628a415bf6.tar.xz
wireguard-openbsd-eed8831cd2c7bec2928d9f4e6bfbd0628a415bf6.zip
Comment.
-rw-r--r--sys/dev/ipmi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c
index 59c2f3422d3..fdad1743cdc 100644
--- a/sys/dev/ipmi.c
+++ b/sys/dev/ipmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi.c,v 1.93 2016/02/07 12:17:33 uebayasi Exp $ */
+/* $OpenBSD: ipmi.c,v 1.94 2016/02/07 12:19:14 uebayasi Exp $ */
/*
* Copyright (c) 2015 Masao Uebayashi
@@ -1827,6 +1827,7 @@ ipmiioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *proc)
recv->msg.data_len = c->c_rxlen + 1;
rc = copyout(c->c_data, recv->msg.data + 1, c->c_rxlen);
+ /* Always reset state after command completion. */
goto reset;
case IPMICTL_SET_MY_ADDRESS_CMD:
iv = *(int *)data;