ipmi: Fix a bug in hot add/remove
authorCorey Minyard <cminyard@mvista.com>
Fri, 10 Oct 2014 22:45:45 +0000 (17:45 -0500)
committerCorey Minyard <cminyard@mvista.com>
Thu, 11 Dec 2014 21:04:05 +0000 (15:04 -0600)
There was a wrong variable used in the name parsing.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_si_intf.c

index f474ad8a7b8e9b3b95f008c4c1cc2fd2efa7e8b6..d1c44fd17aa87ba0b8607de3b022f293e1224286 100644 (file)
@@ -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;