X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fbluetooth%2Fhci_h4.c;h=4804d474dc8735d4a2365258385551134134c616;hb=c7c6e9494cc9a4a5b1a2ca870ed4531ad2b98a83;hp=12e369a66fc24be1e2dba29cae82a679576ca32d;hpb=8a212ab6b8a4ccc6f3c3d1beba5f92655c576404;p=pandora-kernel.git diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c index 12e369a66fc2..4804d474dc87 100644 --- a/drivers/bluetooth/hci_h4.c +++ b/drivers/bluetooth/hci_h4.c @@ -76,12 +76,10 @@ static int h4_open(struct hci_uart *hu) BT_DBG("hu %p", hu); - h4 = kmalloc(sizeof(*h4), GFP_ATOMIC); + h4 = kzalloc(sizeof(*h4), GFP_ATOMIC); if (!h4) return -ENOMEM; - memset(h4, 0, sizeof(*h4)); - skb_queue_head_init(&h4->txq); hu->priv = h4;