summaryrefslogtreecommitdiff
path: root/sys/dev/ipmi.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2017-06-29 03:48:45 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2017-06-29 03:48:45 +0000
commit42dd3c2b1de6e31400f8961f8202418b763feafa (patch)
treedb08f9444291afcf61acd7f938d27053cfaff6dd /sys/dev/ipmi.c
parent6ae7b97a624b794463bdef1fc23677088c3a00e1 (diff)
set c.c_maxrxlen to something. apparently lost a line somewhere.
maybe it works now? :) from Colin Stolley via Paul B. Henson
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 b78d1d43ff6..07bc1c87863 100644
--- a/sys/dev/ipmi.c
+++ b/sys/dev/ipmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi.c,v 1.97 2016/06/07 01:31:54 tedu Exp $ */
+/* $OpenBSD: ipmi.c,v 1.98 2017/06/29 03:48:44 tedu Exp $ */
/*
* Copyright (c) 2015 Masao Uebayashi
@@ -1094,6 +1094,7 @@ get_sdr_partial(struct ipmi_softc *sc, u_int16_t recordId, u_int16_t reserveId,
c.c_cmd = STORAGE_GET_SDR;
c.c_txlen = IPMI_SET_WDOG_MAX;
c.c_rxlen = 0;
+ c.c_maxrxlen = 8 + length;
c.c_data = cmd;
ipmi_cmd(&c);
len = c.c_rxlen;