inst = kmalloc(sizeof(*inst), GFP_ATOMIC); 
inst = kzalloc(sizeof(*inst), GFP_ATOMIC); 
instance_create(u_int16_t queue_num, int pid){	struct nfqnl_instance *inst;	QDEBUG("entering for queue_num=%u, pid=%d\n", queue_num, pid);	write_lock_bh(&instances_lock);		if (__instance_lookup(queue_num)) {		inst = NULL;		QDEBUG("aborting, instance already exists\n");		goto out_unlock;	}	inst = kmalloc(sizeof(*inst), GFP_ATOMIC);	if (!inst)		goto out_unlock;	memset(inst, 0, sizeof(*inst));	inst->queue_num = queue_num;	inst->peer_pid = pid;	inst->queue_maxlen = NFQNL_QMAX_DEFAULT;	inst->copy_range = 0xfffff;	inst->copy_mode = NFQNL_COPY_NONE;	atomic_set(&inst->id_sequence, 0);	/* needs to be two, since we _put() after creation */	atomic_set(&inst->use, 2);	inst->lock = SPIN_LOCK_UNLOCKED;	INIT_LIST_HEAD(&inst->queue_list);	if (!try_module_get(THIS_MODULE))		goto out_free;	hlist_add_head(&inst->hlist, 		       &instance_table[instance_hashfn(queue_num)]);	write_unlock_bh(&instances_lock);	QDEBUG("successfully created new instance\n");	return inst;out_free:	kfree(inst);out_unlock:	write_unlock_bh(&instances_lock);	return NULL;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/10dfdc69ea07d5a6c24406755f5e8de95a1b8901/nfnetlink_queue.c/buggy/net/netfilter/nfnetlink_queue.c