diff options
author | 2017-11-03 15:21:17 +0100 | |
---|---|---|
committer | 2017-11-03 15:21:17 +0100 | |
commit | 0ac8efd24b5a281fbf9ddaf2b57c677e96663303 (patch) | |
tree | fb76fec9984d49f3497e64bf594c0eabe231c19b | |
parent | global: revert checkpatch.pl changes (diff) | |
download | wireguard-monolithic-historical-0ac8efd24b5a281fbf9ddaf2b57c677e96663303.tar.xz wireguard-monolithic-historical-0ac8efd24b5a281fbf9ddaf2b57c677e96663303.zip |
device: please lockdep
-rw-r--r-- | src/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index 8195611..efd0340 100644 --- a/src/device.c +++ b/src/device.c @@ -204,10 +204,10 @@ static void destruct(struct net_device *dev) { struct wireguard_device *wg = netdev_priv(dev); - mutex_lock(&wg->device_update_lock); rtnl_lock(); list_del(&wg->device_list); rtnl_unlock(); + mutex_lock(&wg->device_update_lock); peer_remove_all(wg); /* The final references are cleared in the below calls to destroy_workqueue. */ wg->incoming_port = 0; destroy_workqueue(wg->handshake_receive_wq); |