diff options
author | Corey Minyard <cminyard@mvista.com> | 2014-10-11 00:45:45 +0200 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2014-12-11 22:04:05 +0100 |
commit | ceb51ca8e7916da5d728d386b3896433a435d763 (patch) | |
tree | 9cce47f2f19f0c64a846573a44dd8eb48045a375 /drivers/char | |
parent | ipmi: Remove useless sysfs_name parameters (diff) | |
download | linux-ceb51ca8e7916da5d728d386b3896433a435d763.tar.xz 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.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; |