From c8007439176422f2d678e08b0398ea03f64d8df7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 26 Apr 2011 20:15:49 +0200 Subject: Always use spin_lock_bh for the remote_address/remote_float lock --- quicktun.c | 4 ++-- 1 file 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(); -- cgit v1.2.3