memset(new, 0, sizeof(*new)); 
static struct sel_netif *sel_netif_lookup(struct net_device *dev){	int ret;	struct sel_netif *netif, *new;	struct netif_security_struct *nsec;	netif = sel_netif_find(dev);	if (likely(netif != NULL))		goto out;		new = kmalloc(sizeof(*new), GFP_ATOMIC);	if (!new) {		netif = ERR_PTR(-ENOMEM);		goto out;	}		memset(new, 0, sizeof(*new));	nsec = &new->nsec;	ret = security_netif_sid(dev->name, &nsec->if_sid, &nsec->msg_sid);	if (ret < 0) {		kfree(new);		netif = ERR_PTR(ret);		goto out;	}	nsec->dev = dev;		spin_lock_bh(&sel_netif_lock);		netif = sel_netif_find(dev);	if (netif) {		spin_unlock_bh(&sel_netif_lock);		kfree(new);		goto out;	}		ret = sel_netif_insert(new);	spin_unlock_bh(&sel_netif_lock);		if (ret) {		kfree(new);		netif = ERR_PTR(ret);		goto out;	}	netif = new;		DEBUGP("new: ifindex=%u name=%s if_sid=%u msg_sid=%u\n", dev->ifindex, dev->name,	        nsec->if_sid, nsec->msg_sid);out:	return netif;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/89d155ef62e5e0c10e4b37aaa5056f0beafe10e6/netif.c/buggy/security/selinux/netif.c