Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/char/ipmi/ipmi_si_intf.c
··· 1693 1693 } 1694 1694 *s = '\0'; 1695 1695 s++; 1696 - for (i = 0; hotmod_ops[i].name; i++) { 1696 + for (i = 0; v[i].name; i++) { 1697 1697 if (strcmp(*curr, v[i].name) == 0) { 1698 1698 *val = v[i].val; 1699 1699 *curr = s;