From e49a20eecea2d06f70bba6807919ac48207bdcb2 Mon Sep 17 00:00:00 2001 From: Alexander Amelkin Date: Sun, 17 Jun 2018 12:13:35 +0300 Subject: [PATCH] mc: watchdog set: Fix intr setting The previous commit contained a bug due to which the `intr` option value was never passed to the BMC. --- lib/ipmi_mc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ipmi_mc.c b/lib/ipmi_mc.c index 2f8d19a..94fe446 100644 --- a/lib/ipmi_mc.c +++ b/lib/ipmi_mc.c @@ -890,7 +890,7 @@ ipmi_mc_set_watchdog(struct ipmi_intf * intf, int argc, char *argv[]) msg_data[0] |= use & IPMI_WDT_USE_MASK; msg_data[1] = (intr & IPMI_WDT_INTR_MASK) << IPMI_WDT_INTR_SHIFT; - msg_data[1] = action & IPMI_WDT_ACTION_MASK; + msg_data[1] |= action & IPMI_WDT_ACTION_MASK; msg_data[2] = pretimeout;