Skip to content

Commit

Permalink
ipmi: Fix a bug in hot add/remove
Browse files Browse the repository at this point in the history
There was a wrong variable used in the name parsing.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Dec 11, 2014
1 parent 5a0e10e commit ceb51ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ceb51ca

Please sign in to comment.