diff options
author | Corey Minyard <cminyard@mvista.com> | 2014-10-10 17:45:45 -0500 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2014-12-11 15:04:05 -0600 |
commit | ceb51ca8e7916da5d728d386b3896433a435d763 (patch) | |
tree | 9cce47f2f19f0c64a846573a44dd8eb48045a375 /drivers/char/ipmi | |
parent | 5a0e10ec4a82ec9e1ab9b85a0f2c2893f7ffda25 (diff) |
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/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 2 |
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; |