[PATCH for 2.6.24][NET] fs_enet: check for phydev existence in the ethtool handlers
Sergej Stepanov
Sergej.Stepanov at ids.de
Sat Jan 12 03:01:27 EST 2008
Am Donnerstag, den 10.01.2008, 19:41 +0100 schrieb Heiko Schocher:
> Hello Scott,
>
> Scott Wood wrote:
> > Heiko Schocher wrote:
> >> diff --git a/drivers/net/fs_enet/fs_enet-main.c
> >> b/drivers/net/fs_enet/fs_enet-main.c
> >> index f2a4d39..f432a18 100644
> >> --- a/drivers/net/fs_enet/fs_enet-main.c
> >> +++ b/drivers/net/fs_enet/fs_enet-main.c
> >> @@ -810,6 +810,10 @@ static int fs_enet_open(struct net_device *dev)
> >> if (fep->fpi->use_napi)
> >> napi_enable(&fep->napi);
> >>
> >> + /* to initialize the fep->cur_rx,... */
> >> + /* not doing this, will cause a crash in fs_enet_rx_napi */
> >> + fs_init_bds(fep->ndev);
> >
> > We should do this just before napi_enable() rather than just after, to
> > eliminate any chance of a race window.
>
> Yes, you are right.
> Here is the new patch:
>
It works fine.
Sergej.
More information about the Linuxppc-dev
mailing list