Initialize memory to zero in hci_for_each_dev

This commit is contained in:
Johan Hedberg 2006-08-21 11:26:43 +00:00
parent 99b4c49f0a
commit 9b3d6f5cd1

View File

@ -680,6 +680,8 @@ int hci_for_each_dev(int flag, int (*func)(int dd, int dev_id, long arg), long a
goto done;
}
memset(dl, 0, HCI_MAX_DEV * sizeof(*dr) + sizeof(*dl));
dl->dev_num = HCI_MAX_DEV;
dr = dl->dev_req;