diff options
Diffstat (limited to 'quicktun.c')
-rw-r--r-- | quicktun.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |