projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a0e10e
)
ipmi: Fix a bug in hot add/remove
author
Corey Minyard
<cminyard@mvista.com>
Fri, 10 Oct 2014 22:45:45 +0000
(17:45 -0500)
committer
Corey 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/ipmi/ipmi_si_intf.c
b/drivers/char/ipmi/ipmi_si_intf.c
index f474ad8a7b8e9b3b95f008c4c1cc2fd2efa7e8b6..d1c44fd17aa87ba0b8607de3b022f293e1224286 100644
(file)
--- 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;