Re: kernel oops after ACPI dock initialization fails

From: Kristen Carlson Accardi
Date: Tue May 08 2007 - 18:32:09 EST


On Tue, 08 May 2007 17:54:40 -0400
Chuck Ebbert <cebbert@xxxxxxxxxx> wrote:

> Chuck Ebbert wrote:
> > In 2.6.21.1 when dock driver initialization fails it does a kfree()
> > of dock_station. (Below, this is due to some error installing a
> > notify handler.) Later when a bay is discovered it calls
> > is_dock_device() which attempts to lock the (nonexistent)
> > dock_station. Reason is this test in is_dock_device():
> >
> > if (!dock_station)
> > return 0;
> >
> > dock_station is 0x6b6b6b6b after being freed. Either it needs
> > to be zeroed or some other flag should be used to decide
> > whether a dock station is present...
> >
>
> Untested patch attached.
>
>
>

Hi Chuck,
thanks for the patch, this should fix the problem. Would you care to
resend it with a proper sign-off?

Thanks,
Kristen
-
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/