Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c81ec80b authored by Ben Hutchings's avatar Ben Hutchings Committed by Jeff Garzik
Browse files

qla3xxx: Hold RTNL while calling dev_close()



dev_close() must be called holding the RTNL.  Compile-tested only.

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 64c42f69
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;