data = kmalloc(sizeof(*data), GFP_KERNEL); 
data = kzalloc(sizeof(*data), GFP_KERNEL); 
static int bpa10x_probe(struct usb_interface *intf, const struct usb_device_id *id){	struct usb_device *udev = interface_to_usbdev(intf);	struct hci_dev *hdev;	struct bpa10x_data *data;	int err;	BT_DBG("intf %p id %p", intf, id);	if (ignore)		return -ENODEV;	if (intf->cur_altsetting->desc.bInterfaceNumber > 0)		return -ENODEV;	data = kmalloc(sizeof(*data), GFP_KERNEL);	if (!data) {		BT_ERR("Can't allocate data structure");		return -ENOMEM;	}	memset(data, 0, sizeof(*data));	data->udev = udev;	rwlock_init(&data->lock);	skb_queue_head_init(&data->cmd_queue);	skb_queue_head_init(&data->tx_queue);	hdev = hci_alloc_dev();	if (!hdev) {		BT_ERR("Can't allocate HCI device");		kfree(data);		return -ENOMEM;	}	data->hdev = hdev;	hdev->type = HCI_USB;	hdev->driver_data = data;	SET_HCIDEV_DEV(hdev, &intf->dev);	hdev->open	= bpa10x_open;	hdev->close	= bpa10x_close;	hdev->flush	= bpa10x_flush;	hdev->send	= bpa10x_send_frame;	hdev->destruct	= bpa10x_destruct;	hdev->owner = THIS_MODULE;	err = hci_register_dev(hdev);	if (err < 0) {		BT_ERR("Can't register HCI device");		kfree(data);		hci_free_dev(hdev);		return err;	}	usb_set_intfdata(intf, data);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/089b1dbbde28f0f641c20beabba28fa89ab4fab9/bpa10x.c/buggy/drivers/bluetooth/bpa10x.c