[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080610152501.5c45ce02@extreme>
Date: Tue, 10 Jun 2008 15:25:01 -0700
From: Stephen Hemminger <shemminger@...ux-foundation.org>
To: Jeff Garzik <jgarzik@...ox.com>
Cc: Ben Hutchings <bhutchings@...arflare.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH] sky2: Hold RTNL while calling dev_close() [2nd try]
On Tue, 10 Jun 2008 18:16:42 -0400
Jeff Garzik <jgarzik@...ox.com> wrote:
> Ben Hutchings wrote:
> > dev_close() must be called holding the RTNL. Compile-tested only.
> >
> > Signed-off-by: Ben Hutchings <bhutchings@...arflare.com>
> > ---
> > drivers/net/sky2.c | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
> > index f226bca..b9bdf88 100644
> > --- a/drivers/net/sky2.c
> > +++ b/drivers/net/sky2.c
> > @@ -4395,7 +4395,9 @@ static int sky2_resume(struct pci_dev *pdev)
> > if (err) {
> > printk(KERN_ERR PFX "%s: could not up: %d\n",
> > dev->name, err);
> > + rtnl_lock();
> > dev_close(dev);
> > + rtnl_unlock();
> > goto out;
> > }
>
> stephen acked this? I don't see that in my notes...
>
>
yes. this should go in
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists