Commit 3d9e5df5 authored by Corey Minyard's avatar Corey Minyard

ipmi: Initialize BMC device attributes

This avoids an oops at initialization time.
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
Cc: Sanjeev <singhsan@codeaurora.org>
parent 80fad5b9
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment