diff options
Diffstat (limited to 'drivers/bluetooth/hci_bcsp.c')
-rw-r--r-- | drivers/bluetooth/hci_bcsp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c index 0a4761415ac3..8fddfdfd0fbd 100644 --- a/drivers/bluetooth/hci_bcsp.c +++ b/drivers/bluetooth/hci_bcsp.c | |||
@@ -715,10 +715,9 @@ static int bcsp_open(struct hci_uart *hu) | |||
715 | 715 | ||
716 | BT_DBG("hu %p", hu); | 716 | BT_DBG("hu %p", hu); |
717 | 717 | ||
718 | bcsp = kmalloc(sizeof(*bcsp), GFP_ATOMIC); | 718 | bcsp = kzalloc(sizeof(*bcsp), GFP_ATOMIC); |
719 | if (!bcsp) | 719 | if (!bcsp) |
720 | return -ENOMEM; | 720 | return -ENOMEM; |
721 | memset(bcsp, 0, sizeof(*bcsp)); | ||
722 | 721 | ||
723 | hu->priv = bcsp; | 722 | hu->priv = bcsp; |
724 | skb_queue_head_init(&bcsp->unack); | 723 | skb_queue_head_init(&bcsp->unack); |