mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
wireless/bluetooth: Initialize private bt_driver_s member.
This commit is contained in:
parent
78bff8e9c5
commit
0356d1403d
2 changed files with 10 additions and 2 deletions
|
|
@ -1194,7 +1194,7 @@ int bt_netdev_register(FAR struct bt_driver_s *btdev)
|
|||
|
||||
/* Get the interface structure associated with this interface number. */
|
||||
|
||||
priv = (FAR struct btnet_driver_s *)
|
||||
btdev->bt_net = priv = (FAR struct btnet_driver_s *)
|
||||
kmm_zalloc(sizeof(struct btnet_driver_s));
|
||||
|
||||
if (priv == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue