class_device_create(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR,i), NULL, "cfs%d", i); 
class_device_create(coda_psdev_class, NULL, MKDEV(CODA_PSDEV_MAJOR,i), NULL, "cfs%d", i); 
static int init_coda_psdev(void){	int i, err = 0;	if (register_chrdev(CODA_PSDEV_MAJOR, "coda", &coda_psdev_fops)) {              printk(KERN_ERR "coda_psdev: unable to get major %d\n", 		     CODA_PSDEV_MAJOR);              return -EIO;	}	coda_psdev_class = class_create(THIS_MODULE, "coda");	if (IS_ERR(coda_psdev_class)) {		err = PTR_ERR(coda_psdev_class);		goto out_chrdev;	}			devfs_mk_dir ("coda");	for (i = 0; i < MAX_CODADEVS; i++) {		class_device_create(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR,i),				NULL, "cfs%d", i);		err = devfs_mk_cdev(MKDEV(CODA_PSDEV_MAJOR, i),				S_IFCHR|S_IRUSR|S_IWUSR, "coda/%d", i);		if (err)			goto out_class;	}	coda_sysctl_init();	goto out;out_class:	for (i = 0; i < MAX_CODADEVS; i++) 		class_device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i));	class_destroy(coda_psdev_class);out_chrdev:	unregister_chrdev(CODA_PSDEV_MAJOR, "coda");out:	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/53f4654272df7c51064825024340554b39c9efba/psdev.c/buggy/fs/coda/psdev.c