From 3d9e5df52710407e16a3610565443b27b2b0a840 Mon Sep 17 00:00:00 2001 From: Corey Minyard Date: Thu, 6 Nov 2014 20:11:40 -0600 Subject: ipmi: Initialize BMC device attributes This avoids an oops at initialization time. Signed-off-by: Corey Minyard Cc: Sanjeev --- drivers/char/ipmi/ipmi_msghandler.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/char') 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) -- cgit v1.2.3