Re: [PATCH] ipmi: Make sure drivers were registered beforeunregistering them

From: Matthew Garrett
Date: Mon Jun 14 2010 - 16:47:16 EST


On Mon, Jun 14, 2010 at 01:36:08PM -0700, Andrew Morton wrote:
> On Thu, 10 Jun 2010 13:53:26 -0400
> Matthew Garrett <mjg@xxxxxxxxxx> wrote:
>
> > The ipmi code will never register a PCI or Open Firmware driver if
> > a hardcoded device is provided by the user.
>
> How does a user "provide a hardcoded device"?

By providing device addresses via the module parameters. This is the
terminology used in the driver.

> I tried to work out from the above whether we want to backport this fix
> into -stable and failed. And I reckon that if I can't work this out
> from a changelog, the changelog is inadequate.

We don't. The change that caused this bug was merged post-.34.

> > #ifdef CONFIG_ACPI
> > @@ -3330,6 +3338,7 @@ static __devinit int init_ipmi_si(void)
> >
> > #ifdef CONFIG_PPC_OF
> > of_register_platform_driver(&ipmi_of_platform_driver);
> > + of_registered = 1;
>
> I assume the code will still oops if of_register_platform_driver() failed.

Indeed. I should fix that.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/