[BUG] ipmi: NULL device printing in check_set_rcv_irq()
From: Corentin Labbe
Date: Mon Nov 07 2016 - 04:57:53 EST
Hello
On one of my servers I got this line in dmesg
(NULL device *): The BMC does not support setting the recv irq bit, compensating, but the BMC needs to be fixed.
This printing is done via a dev_warn(smi_info->dev,) in drivers/char/ipmi/ipmi_si_intf.c:check_clr_rcv_irq() but smi_info->dev is set only latter in try_smi_init().
I do not know which way is better to fix it, either move the code block which register the device before check_for_broken_irqs(), or perhaps replace dev_warn by pr_warn.
Regards
Corentin Labbe