OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80fad5b
)
ipmi: Initialize BMC device attributes
author
Corey Minyard
<cminyard@mvista.com>
Fri, 7 Nov 2014 02:11:40 +0000
(20:11 -0600)
committer
Corey Minyard
<cminyard@mvista.com>
Thu, 11 Dec 2014 21:04:07 +0000
(15:04 -0600)
This avoids an oops at initialization time.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Sanjeev <singhsan@codeaurora.org>
drivers/char/ipmi/ipmi_msghandler.c
patch
|
blob
|
history
diff --git
a/drivers/char/ipmi/ipmi_msghandler.c
b/drivers/char/ipmi/ipmi_msghandler.c
index
3e8663b
..
dac5637
100644
(file)
--- a/
drivers/char/ipmi/ipmi_msghandler.c
+++ b/
drivers/char/ipmi/ipmi_msghandler.c
@@
-2390,12
+2390,14
@@
static int create_bmc_files(struct bmc_device *bmc)
int err;
if (bmc->id.aux_firmware_revision_set) {
+ bmc->aux_firmware_rev_attr.attr.name = "aux_firmware_revision";
err = device_create_file(&bmc->pdev.dev,
&bmc->aux_firmware_rev_attr);
if (err)
goto out;
}
if (bmc->guid_set) {
+ bmc->guid_attr.attr.name = "guid";
err = device_create_file(&bmc->pdev.dev,
&bmc->guid_attr);
if (err)