diff options
Diffstat (limited to 'drivers/bluetooth/dtl1_cs.c')
-rw-r--r-- | drivers/bluetooth/dtl1_cs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c index a71a240611e0..0e99def8a1e3 100644 --- a/drivers/bluetooth/dtl1_cs.c +++ b/drivers/bluetooth/dtl1_cs.c | |||
@@ -20,7 +20,6 @@ | |||
20 | * | 20 | * |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <linux/config.h> | ||
24 | #include <linux/module.h> | 23 | #include <linux/module.h> |
25 | 24 | ||
26 | #include <linux/kernel.h> | 25 | #include <linux/kernel.h> |
@@ -423,6 +422,9 @@ static int dtl1_hci_send_frame(struct sk_buff *skb) | |||
423 | nsh.len = skb->len; | 422 | nsh.len = skb->len; |
424 | 423 | ||
425 | s = bt_skb_alloc(NSHL + skb->len + 1, GFP_ATOMIC); | 424 | s = bt_skb_alloc(NSHL + skb->len + 1, GFP_ATOMIC); |
425 | if (!s) | ||
426 | return -ENOMEM; | ||
427 | |||
426 | skb_reserve(s, NSHL); | 428 | skb_reserve(s, NSHL); |
427 | memcpy(skb_put(s, skb->len), skb->data, skb->len); | 429 | memcpy(skb_put(s, skb->len), skb->data, skb->len); |
428 | if (skb->len & 0x0001) | 430 | if (skb->len & 0x0001) |
@@ -482,6 +484,7 @@ static int dtl1_open(dtl1_info_t *info) | |||
482 | 484 | ||
483 | hdev->type = HCI_PCCARD; | 485 | hdev->type = HCI_PCCARD; |
484 | hdev->driver_data = info; | 486 | hdev->driver_data = info; |
487 | SET_HCIDEV_DEV(hdev, &info->p_dev->dev); | ||
485 | 488 | ||
486 | hdev->open = dtl1_hci_open; | 489 | hdev->open = dtl1_hci_open; |
487 | hdev->close = dtl1_hci_close; | 490 | hdev->close = dtl1_hci_close; |