mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 00:52:01 +00:00
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>
This commit is contained in:
parent
5a0e10ec4a
commit
ceb51ca8e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user