if ((floppy = (idefloppy_floppy_t *) kmalloc (sizeof (idefloppy_floppy_t), GFP_KERNEL)) == NULL) { 
if ((floppy = (idefloppy_floppy_t *) kzalloc (sizeof (idefloppy_floppy_t), GFP_KERNEL)) == NULL) { 
static int ide_floppy_probe(struct device *dev){	ide_drive_t *drive = to_ide_device(dev);	idefloppy_floppy_t *floppy;	struct gendisk *g;	if (!strstr("ide-floppy", drive->driver_req))		goto failed;	if (!drive->present)		goto failed;	if (drive->media != ide_floppy)		goto failed;	if (!idefloppy_identify_device (drive, drive->id)) {		printk (KERN_ERR "ide-floppy: %s: not supported by this version of ide-floppy\n", drive->name);		goto failed;	}	if (drive->scsi) {		printk("ide-floppy: passing drive %s to ide-scsi emulation.\n", drive->name);		goto failed;	}	if ((floppy = (idefloppy_floppy_t *) kmalloc (sizeof (idefloppy_floppy_t), GFP_KERNEL)) == NULL) {		printk (KERN_ERR "ide-floppy: %s: Can't allocate a floppy structure\n", drive->name);		goto failed;	}	g = alloc_disk(1 << PARTN_BITS);	if (!g)		goto out_free_floppy;	ide_init_disk(g, drive);	ide_register_subdriver(drive, &idefloppy_driver);	memset(floppy, 0, sizeof(*floppy));	kref_init(&floppy->kref);	floppy->drive = drive;	floppy->driver = &idefloppy_driver;	floppy->disk = g;	g->private_data = &floppy->driver;	drive->driver_data = floppy;	idefloppy_setup (drive, floppy);	g->minors = 1 << PARTN_BITS;	g->driverfs_dev = &drive->gendev;	strcpy(g->devfs_name, drive->devfs_name);	g->flags = drive->removable ? GENHD_FL_REMOVABLE : 0;	g->fops = &idefloppy_ops;	drive->attach = 1;	add_disk(g);	return 0;out_free_floppy:	kfree(floppy);failed:	return -ENODEV;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f5e3c2faa20615e900ab26bd957f898400435924/ide-floppy.c/clean/drivers/ide/ide-floppy.c