git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
security
/
selinux
/
netif.c
diff --git
a/security/selinux/netif.c
b/security/selinux/netif.c
index
4cbf8f2
..
d23bd7e
100644
(file)
--- a/
security/selinux/netif.c
+++ b/
security/selinux/netif.c
@@
-134,9
+134,9
@@
out:
return netif;
}
return netif;
}
-static void sel_netif_free(
voi
d *p)
+static void sel_netif_free(
struct rcu_hea
d *p)
{
{
- struct sel_netif *netif =
p
;
+ struct sel_netif *netif =
container_of(p, struct sel_netif, rcu_head)
;
DEBUGP("%s: %s\n", __FUNCTION__, netif->nsec.dev->name);
kfree(netif);
DEBUGP("%s: %s\n", __FUNCTION__, netif->nsec.dev->name);
kfree(netif);
@@
-151,7
+151,7
@@
static void sel_netif_destroy(struct sel_netif *netif)
sel_netif_total--;
spin_unlock_bh(&sel_netif_lock);
sel_netif_total--;
spin_unlock_bh(&sel_netif_lock);
- call_rcu(&netif->rcu_head, sel_netif_free
, netif
);
+ call_rcu(&netif->rcu_head, sel_netif_free);
}
void sel_netif_put(struct sel_netif *netif)
}
void sel_netif_put(struct sel_netif *netif)