soft = kcalloc(1, sizeof(struct mbcs_soft), GFP_KERNEL); 
soft = kzalloc(sizeof(struct mbcs_soft), GFP_KERNEL); 
static int mbcs_probe(struct cx_dev *dev, const struct cx_device_id *id){	struct mbcs_soft *soft;	dev->soft = NULL;	soft = kcalloc(1, sizeof(struct mbcs_soft), GFP_KERNEL);	if (soft == NULL)		return -ENOMEM;	soft->nasid = dev->cx_id.nasid;	list_add(&soft->list, &soft_list);	soft->mmr_base = (void *)tiocx_swin_base(dev->cx_id.nasid);	dev->soft = soft;	soft->cxdev = dev;	init_waitqueue_head(&soft->dmawrite_queue);	init_waitqueue_head(&soft->dmaread_queue);	init_waitqueue_head(&soft->algo_queue);	init_MUTEX(&soft->dmawritelock);	init_MUTEX(&soft->dmareadlock);	init_MUTEX(&soft->algolock);	mbcs_getdma_init(&soft->getdma);	mbcs_putdma_init(&soft->putdma);	mbcs_algo_init(&soft->algo);	mbcs_hw_init(soft);	/* Allocate interrupts */	mbcs_intr_alloc(dev);	device_create_file(&dev->dev, &dev_attr_algo);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/82ca76b6b160b6fce46f78c069f87fe1a4dc0778/mbcs.c/buggy/drivers/char/mbcs.c