atomic_inc(&command_count); dbg("command count: %d\n", atomic_read(&command_count));  
struct command *ibmasm_new_command(size_t buffer_size){	struct command *cmd;	if (buffer_size > IBMASM_CMD_MAX_BUFFER_SIZE)		return NULL;	cmd = kmalloc(sizeof(struct command), GFP_KERNEL);	if (cmd == NULL)		return NULL;	memset(cmd, 0, sizeof(*cmd));	cmd->buffer = kmalloc(buffer_size, GFP_KERNEL);	if (cmd->buffer == NULL) {		kfree(cmd);		return NULL;	}	memset(cmd->buffer, 0, buffer_size);	cmd->buffer_size = buffer_size;	kobject_init(&cmd->kobj);	cmd->kobj.ktype = &ibmasm_cmd_kobj_type;	cmd->status = IBMASM_CMD_PENDING;	init_waitqueue_head(&cmd->wait);	INIT_LIST_HEAD(&cmd->queue_node);	return cmd;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8818760512424f60ad9fafb7a087b007a9274eb3/command.c/buggy/drivers/misc/ibmasm/command.c