summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-05-06 19:36:26 +0100
committerJeff Garzik <jgarzik@redhat.com>2008-06-27 01:31:50 -0400
commitc81ec80bc86f4eacd5f48229c1de623865acbb92 (patch)
treed90f9db6f8d37293df656beb38389844efdef1b6 /drivers/net
parent64c42f697661e27c9688a32c1ba61d0228e81d84 (diff)
downloadlwn-c81ec80bc86f4eacd5f48229c1de623865acbb92.tar.gz
lwn-c81ec80bc86f4eacd5f48229c1de623865acbb92.zip
qla3xxx: Hold RTNL while calling dev_close()
dev_close() must be called holding the RTNL. Compile-tested only. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/qla3xxx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c
index b7f7b2227d56..bccee68bd48a 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;
}
return 0;