diff options
author | Corey Minyard <cminyard@mvista.com> | 2014-11-06 21:11:40 -0500 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2014-12-11 16:04:07 -0500 |
commit | 3d9e5df52710407e16a3610565443b27b2b0a840 (patch) | |
tree | c7f6fc601d59d17ec54d5569e1a46c4191bc4c35 | |
parent | 80fad5b959398f347e3b67d8ffdc5a81af1eff82 (diff) |
ipmi: Initialize BMC device attributes
This avoids an oops at initialization time.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Sanjeev <singhsan@codeaurora.org>
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index 3e8663b1a62b..dac563709cd5 100644 --- 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) | |||
2390 | int err; | 2390 | int err; |
2391 | 2391 | ||
2392 | if (bmc->id.aux_firmware_revision_set) { | 2392 | if (bmc->id.aux_firmware_revision_set) { |
2393 | bmc->aux_firmware_rev_attr.attr.name = "aux_firmware_revision"; | ||
2393 | err = device_create_file(&bmc->pdev.dev, | 2394 | err = device_create_file(&bmc->pdev.dev, |
2394 | &bmc->aux_firmware_rev_attr); | 2395 | &bmc->aux_firmware_rev_attr); |
2395 | if (err) | 2396 | if (err) |
2396 | goto out; | 2397 | goto out; |
2397 | } | 2398 | } |
2398 | if (bmc->guid_set) { | 2399 | if (bmc->guid_set) { |
2400 | bmc->guid_attr.attr.name = "guid"; | ||
2399 | err = device_create_file(&bmc->pdev.dev, | 2401 | err = device_create_file(&bmc->pdev.dev, |
2400 | &bmc->guid_attr); | 2402 | &bmc->guid_attr); |
2401 | if (err) | 2403 | if (err) |