summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-04-26 20:15:49 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-04-26 20:15:49 +0200
commitc8007439176422f2d678e08b0398ea03f64d8df7 (patch)
tree56c273ac226fc853dac5324d6a972ebe55da1efa
parent8f54251ae9023d344eb34a082fb163cfee9ae385 (diff)
downloadmodquicktun-c8007439176422f2d678e08b0398ea03f64d8df7.tar
modquicktun-c8007439176422f2d678e08b0398ea03f64d8df7.zip
Always use spin_lock_bh for the remote_address/remote_float lock
-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();