class_simple_destroy(cpuid_class); 
class_destroy(cpuid_class); 
static int __init cpuid_init(void){	int i, err = 0;	i = 0;	if (register_chrdev(CPUID_MAJOR, "cpu/cpuid", &cpuid_fops)) {		printk(KERN_ERR "cpuid: unable to get major %d for cpuid\n",		       CPUID_MAJOR);		err = -EBUSY;		goto out;	}	cpuid_class = class_simple_create(THIS_MODULE, "cpuid");	if (IS_ERR(cpuid_class)) {		err = PTR_ERR(cpuid_class);		goto out_chrdev;	}	for_each_online_cpu(i) {		err = cpuid_class_simple_device_add(i);		if (err != 0) 			goto out_class;	}	register_cpu_notifier(&cpuid_class_cpu_notifier);	err = 0;	goto out;out_class:	i = 0;	for_each_online_cpu(i) {		class_simple_device_remove(MKDEV(CPUID_MAJOR, i));	}	class_simple_destroy(cpuid_class);out_chrdev:	unregister_chrdev(CPUID_MAJOR, "cpu/cpuid");	out:	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8874b414ffe037c39e73bb262ddf69653a13c0a4/cpuid.c/buggy/arch/i386/kernel/cpuid.c