diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-26 20:15:49 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-26 20:15:49 +0200 |
commit | c8007439176422f2d678e08b0398ea03f64d8df7 (patch) | |
tree | 56c273ac226fc853dac5324d6a972ebe55da1efa | |
parent | 8f54251ae9023d344eb34a082fb163cfee9ae385 (diff) | |
download | modquicktun-c8007439176422f2d678e08b0398ea03f64d8df7.tar modquicktun-c8007439176422f2d678e08b0398ea03f64d8df7.zip |
Always use spin_lock_bh for the remote_address/remote_float lock
-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(); |