[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <48647B68.3010708@pobox.com>
Date: Fri, 27 Jun 2008 01:32:24 -0400
From: Jeff Garzik <jgarzik@...ox.com>
To: Ben Hutchings <bhutchings@...arflare.com>
CC: Ron Mercer <linux-driver@...gic.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH 2/4] qla3xxx: Hold RTNL while calling dev_close()
Ben Hutchings wrote:
> dev_close() must be called holding the RTNL. Compile-tested only.
>
> Signed-off-by: Ben Hutchings <bhutchings@...arflare.com>
> ---
> drivers/net/qla3xxx.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c
> index b7f7b22..bccee68 100644
> --- a/drivers/net/qla3xxx.c
> +++ b/drivers/net/qla3xxx.c
> @@ -3701,7 +3701,9 @@ static int ql_cycle_adapter(struct ql3_adapter *qdev, int reset)
> printk(KERN_ERR PFX
> "%s: Driver up/down cycle failed, "
> "closing device\n",qdev->ndev->name);
> + rtnl_lock();
> dev_close(qdev->ndev);
> + rtnl_unlock();
> return -1;
applied
--
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