diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-05-06 20:36:26 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-06-27 07:31:50 +0200 |
commit | c81ec80bc86f4eacd5f48229c1de623865acbb92 (patch) | |
tree | d90f9db6f8d37293df656beb38389844efdef1b6 /drivers/net/qla3xxx.c | |
parent | [netdrvr] Fix IOMMU overflow checking in s2io.c (diff) | |
download | linux-c81ec80bc86f4eacd5f48229c1de623865acbb92.tar.xz linux-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/qla3xxx.c')
-rw-r--r-- | 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 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; |