summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--quicktun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/quicktun.c b/quicktun.c
index 85ba52e..1c8a302 100644
--- a/quicktun.c
+++ b/quicktun.c
@@ -610,7 +610,7 @@ static int quicktun_cmd_change_device(struct sk_buff *skb, struct genl_info *inf
goto err_unlock;
}
- spin_lock(&tun->lock);
+ spin_lock_bh(&tun->lock);
old_addr = rcu_dereference_protected(tun->remote_address, lockdep_is_held(&tun->lock));
@@ -632,7 +632,7 @@ static int quicktun_cmd_change_device(struct sk_buff *skb, struct genl_info *inf
rcu_assign_pointer(tun->remote_address, addr);
call_rcu(&old_addr->rcu, free_addr_struct);
- spin_unlock(&tun->lock);
+ spin_unlock_bh(&tun->lock);
rtnl_unlock();