diff options
Diffstat (limited to 'drivers/bluetooth/bfusb.c')
-rw-r--r-- | drivers/bluetooth/bfusb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c index 1e9db0156ea7..067e27893e4a 100644 --- a/drivers/bluetooth/bfusb.c +++ b/drivers/bluetooth/bfusb.c | |||
@@ -673,13 +673,11 @@ static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
673 | } | 673 | } |
674 | 674 | ||
675 | /* Initialize control structure and load firmware */ | 675 | /* Initialize control structure and load firmware */ |
676 | if (!(bfusb = kmalloc(sizeof(struct bfusb), GFP_KERNEL))) { | 676 | if (!(bfusb = kzalloc(sizeof(struct bfusb), GFP_KERNEL))) { |
677 | BT_ERR("Can't allocate memory for control structure"); | 677 | BT_ERR("Can't allocate memory for control structure"); |
678 | goto done; | 678 | goto done; |
679 | } | 679 | } |
680 | 680 | ||
681 | memset(bfusb, 0, sizeof(struct bfusb)); | ||
682 | |||
683 | bfusb->udev = udev; | 681 | bfusb->udev = udev; |
684 | bfusb->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress; | 682 | bfusb->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress; |
685 | bfusb->bulk_out_ep = bulk_out_ep->desc.bEndpointAddress; | 683 | bfusb->bulk_out_ep = bulk_out_ep->desc.bEndpointAddress; |