mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
NFC: st-nci: initialize gate_count in st_nci_hci_network_init
When initializing ndev->hci_dev->init_data, only gates field was set. gate_count needs to be initialized as well. Cc: [email protected] Signed-off-by: Christophe Ricard <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
92d108b6f4
commit
404b3e585b
1 changed files with 1 additions and 0 deletions
|
|
@ -536,6 +536,7 @@ static int st_nci_hci_network_init(struct nci_dev *ndev)
|
|||
if (!conn_info)
|
||||
goto free_dest_params;
|
||||
|
||||
ndev->hci_dev->init_data.gate_count = ARRAY_SIZE(st_nci_gates);
|
||||
memcpy(ndev->hci_dev->init_data.gates, st_nci_gates,
|
||||
sizeof(st_nci_gates));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue