diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-30 21:37:12 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-30 21:37:12 -0500 |
commit | 23fd07750a789a66fe88cf173d52a18f1a387da4 (patch) | |
tree | 06fdd6df35fdb835abdaa9b754d62f6b84b97250 /security/selinux/netif.c | |
parent | bd787d438a59266af3c9f6351644c85ef1dd21fe (diff) | |
parent | ed28f96ac1960f30f818374d65be71d2fdf811b0 (diff) |
Merge ../linux-2.6 by hand
Diffstat (limited to 'security/selinux/netif.c')
-rw-r--r-- | security/selinux/netif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/netif.c b/security/selinux/netif.c index 718d7be9f4dd..b10c34e8a743 100644 --- a/security/selinux/netif.c +++ b/security/selinux/netif.c | |||
@@ -114,13 +114,12 @@ static struct sel_netif *sel_netif_lookup(struct net_device *dev) | |||
114 | if (likely(netif != NULL)) | 114 | if (likely(netif != NULL)) |
115 | goto out; | 115 | goto out; |
116 | 116 | ||
117 | new = kmalloc(sizeof(*new), GFP_ATOMIC); | 117 | new = kzalloc(sizeof(*new), GFP_ATOMIC); |
118 | if (!new) { | 118 | if (!new) { |
119 | netif = ERR_PTR(-ENOMEM); | 119 | netif = ERR_PTR(-ENOMEM); |
120 | goto out; | 120 | goto out; |
121 | } | 121 | } |
122 | 122 | ||
123 | memset(new, 0, sizeof(*new)); | ||
124 | nsec = &new->nsec; | 123 | nsec = &new->nsec; |
125 | 124 | ||
126 | ret = security_netif_sid(dev->name, &nsec->if_sid, &nsec->msg_sid); | 125 | ret = security_netif_sid(dev->name, &nsec->if_sid, &nsec->msg_sid); |