error_get_fail: 
cpufreq_stats_create_table (struct cpufreq_policy *policy,		struct cpufreq_frequency_table *table){	unsigned int i, j, count = 0, ret = 0;	struct cpufreq_stats *stat;	struct cpufreq_policy *data;	unsigned int alloc_size;	unsigned int cpu = policy->cpu;	if (cpufreq_stats_table[cpu])		return -EBUSY;	if ((stat = kzalloc(sizeof(struct cpufreq_stats), GFP_KERNEL)) == NULL)		return -ENOMEM;	data = cpufreq_cpu_get(cpu);	if (data == NULL) {		ret = -EINVAL;		goto error_get_fail;	}	if ((ret = sysfs_create_group(&data->kobj, &stats_attr_group)))		goto error_out;	stat->cpu = cpu;	cpufreq_stats_table[cpu] = stat;	for (i=0; table[i].frequency != CPUFREQ_TABLE_END; i++) {		unsigned int freq = table[i].frequency;		if (freq == CPUFREQ_ENTRY_INVALID)			continue;		count++;	}	alloc_size = count * sizeof(int) + count * sizeof(cputime64_t);#ifdef CONFIG_CPU_FREQ_STAT_DETAILS	alloc_size += count * count * sizeof(int);#endif	stat->max_state = count;	stat->time_in_state = kzalloc(alloc_size, GFP_KERNEL);	if (!stat->time_in_state) {		ret = -ENOMEM;		goto error_out;	}	stat->freq_table = (unsigned int *)(stat->time_in_state + count);#ifdef CONFIG_CPU_FREQ_STAT_DETAILS	stat->trans_table = stat->freq_table + count;#endif	j = 0;	for (i = 0; table[i].frequency != CPUFREQ_TABLE_END; i++) {		unsigned int freq = table[i].frequency;		if (freq == CPUFREQ_ENTRY_INVALID)			continue;		if (freq_table_get_index(stat, freq) == -1)			stat->freq_table[j++] = freq;	}	stat->state_num = j;	spin_lock(&cpufreq_stats_lock);	stat->last_time = get_jiffies_64();	stat->last_index = freq_table_get_index(stat, policy->cur);	spin_unlock(&cpufreq_stats_lock);	cpufreq_cpu_put(data);	return 0;error_out:	cpufreq_cpu_put(data);	kfree(stat);	cpufreq_stats_table[cpu] = NULL;	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b7fb358c7c36a14927d5523ea674e69f90c51d1d/cpufreq_stats.c/clean/drivers/cpufreq/cpufreq_stats.c