diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-22 18:15:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-22 18:15:48 -0400 |
commit | e199ceee15c8f8652cc3bb97651bdf246ba23c5f (patch) | |
tree | 1d6540d2f0724af08e117324326322e9c882260b /security/selinux/netif.c | |
parent | b24a31442e2ff66053ae4f76e9c69c557d59c7d1 (diff) | |
parent | 618442509128fe4514be94de70ce54075cd9a706 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
SELinux fixups needed for preemptable RCU from -rt
SELinux: no BUG_ON(!ss_initialized) in selinux_clone_mnt_opts
Diffstat (limited to 'security/selinux/netif.c')
-rw-r--r-- | security/selinux/netif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/netif.c b/security/selinux/netif.c index c658b84c3196..b4e14bc0bf32 100644 --- a/security/selinux/netif.c +++ b/security/selinux/netif.c | |||
@@ -239,11 +239,13 @@ static void sel_netif_kill(int ifindex) | |||
239 | { | 239 | { |
240 | struct sel_netif *netif; | 240 | struct sel_netif *netif; |
241 | 241 | ||
242 | rcu_read_lock(); | ||
242 | spin_lock_bh(&sel_netif_lock); | 243 | spin_lock_bh(&sel_netif_lock); |
243 | netif = sel_netif_find(ifindex); | 244 | netif = sel_netif_find(ifindex); |
244 | if (netif) | 245 | if (netif) |
245 | sel_netif_destroy(netif); | 246 | sel_netif_destroy(netif); |
246 | spin_unlock_bh(&sel_netif_lock); | 247 | spin_unlock_bh(&sel_netif_lock); |
248 | rcu_read_unlock(); | ||
247 | } | 249 | } |
248 | 250 | ||
249 | /** | 251 | /** |