diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 278a3ace14f6..7bb0f1cb7f26 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -756,7 +756,7 @@ int hci_get_dev_list(void __user *arg) | |||
756 | 756 | ||
757 | size = sizeof(*dl) + dev_num * sizeof(*dr); | 757 | size = sizeof(*dl) + dev_num * sizeof(*dr); |
758 | 758 | ||
759 | if (!(dl = kmalloc(size, GFP_KERNEL))) | 759 | if (!(dl = kzalloc(size, GFP_KERNEL))) |
760 | return -ENOMEM; | 760 | return -ENOMEM; |
761 | 761 | ||
762 | dr = dl->dev_req; | 762 | dr = dl->dev_req; |