Re: PCI driver module unload race?

Greg KH
2003-03-10T23:51:26Z

On Tue, Mar 11, 2003 at 12:48:43AM +0100, Oliver Neukum wrote:
>
> > diff -Nru a/drivers/base/bus.c b/drivers/base/bus.c
> > --- a/drivers/base/bus.c Mon Mar 10 13:52:15 2003
> > +++ b/drivers/base/bus.c Mon Mar 10 13:52:15 2003
> > @@ -263,14 +263,25 @@
> > if (dev->bus->match(dev,drv)) {
> > dev->driver = drv;
> > if (drv->probe) {
> > - if ((error = drv->probe(dev))) {
>
> It seems that the semaphore in bus_add_device() makes this unnecessary.

Hm, yes. I think you are correct.

So this patch is not needed, and the struct module * can be ripped out
of struct usb_driver too :)

Thanks,

greg k-h