diff options
Diffstat (limited to 'drivers/bluetooth/bpa10x.c')
-rw-r--r-- | drivers/bluetooth/bpa10x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index 0db0400519c9..ecbeb7eaba8e 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c | |||
@@ -553,14 +553,12 @@ static int bpa10x_probe(struct usb_interface *intf, const struct usb_device_id * | |||
553 | if (intf->cur_altsetting->desc.bInterfaceNumber > 0) | 553 | if (intf->cur_altsetting->desc.bInterfaceNumber > 0) |
554 | return -ENODEV; | 554 | return -ENODEV; |
555 | 555 | ||
556 | data = kmalloc(sizeof(*data), GFP_KERNEL); | 556 | data = kzalloc(sizeof(*data), GFP_KERNEL); |
557 | if (!data) { | 557 | if (!data) { |
558 | BT_ERR("Can't allocate data structure"); | 558 | BT_ERR("Can't allocate data structure"); |
559 | return -ENOMEM; | 559 | return -ENOMEM; |
560 | } | 560 | } |
561 | 561 | ||
562 | memset(data, 0, sizeof(*data)); | ||
563 | |||
564 | data->udev = udev; | 562 | data->udev = udev; |
565 | 563 | ||
566 | rwlock_init(&data->lock); | 564 | rwlock_init(&data->lock); |