mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
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>
This commit is contained in:
parent
80fad5b959
commit
3d9e5df527
@ -2390,12 +2390,14 @@ static int create_bmc_files(struct bmc_device *bmc)
|
|||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (bmc->id.aux_firmware_revision_set) {
|
if (bmc->id.aux_firmware_revision_set) {
|
||||||
|
bmc->aux_firmware_rev_attr.attr.name = "aux_firmware_revision";
|
||||||
err = device_create_file(&bmc->pdev.dev,
|
err = device_create_file(&bmc->pdev.dev,
|
||||||
&bmc->aux_firmware_rev_attr);
|
&bmc->aux_firmware_rev_attr);
|
||||||
if (err)
|
if (err)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if (bmc->guid_set) {
|
if (bmc->guid_set) {
|
||||||
|
bmc->guid_attr.attr.name = "guid";
|
||||||
err = device_create_file(&bmc->pdev.dev,
|
err = device_create_file(&bmc->pdev.dev,
|
||||||
&bmc->guid_attr);
|
&bmc->guid_attr);
|
||||||
if (err)
|
if (err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user