diff options
author | Corey Minyard <cminyard@mvista.com> | 2014-11-06 20:11:40 -0600 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2014-12-11 15:04:07 -0600 |
commit | 3d9e5df52710407e16a3610565443b27b2b0a840 (patch) | |
tree | c7f6fc601d59d17ec54d5569e1a46c4191bc4c35 /drivers/char/ipmi | |
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>
Diffstat (limited to 'drivers/char/ipmi')
-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) 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) |