summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2014-10-10 17:45:45 -0500
committerCorey Minyard <cminyard@mvista.com>2014-12-11 15:04:05 -0600
commitceb51ca8e7916da5d728d386b3896433a435d763 (patch)
tree9cce47f2f19f0c64a846573a44dd8eb48045a375 /drivers/char
parent5a0e10ec4a82ec9e1ab9b85a0f2c2893f7ffda25 (diff)
downloadblackbird-obmc-linux-ceb51ca8e7916da5d728d386b3896433a435d763.tar.gz
blackbird-obmc-linux-ceb51ca8e7916da5d728d386b3896433a435d763.zip
ipmi: Fix a bug in hot add/remove
There was a wrong variable used in the name parsing. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/ipmi/ipmi_si_intf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index f474ad8a7b8e..d1c44fd17aa8 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -1693,7 +1693,7 @@ static int parse_str(struct hotmod_vals *v, int *val, char *name, char **curr)
}
*s = '\0';
s++;
- for (i = 0; hotmod_ops[i].name; i++) {
+ for (i = 0; v[i].name; i++) {
if (strcmp(*curr, v[i].name) == 0) {
*val = v[i].val;
*curr = s;
OpenPOWER on IntegriCloud