summaryrefslogtreecommitdiff
path: root/sys/dev/ipmi.c
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2016-02-07 12:19:15 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2016-02-07 12:19:15 +0000
commit675aa3fd861b21a9940adb9d1e7661886827cf7a (patch)
treefcf08d4a916fba1633104989958130f41175e6c7 /sys/dev/ipmi.c
parent7fcc6d0359d8a2bb8dcf4d3929ba8c7b53acc7fc (diff)
Comment.
Diffstat (limited to 'sys/dev/ipmi.c')
-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;