mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
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>
This commit is contained in:
parent
64c42f6976
commit
c81ec80bc8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user