mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
qcacmn: Initialize peer bufq and info_lock on reuse
Currently in case when a peer handle is reused, the info_lock and bufq resources are not getting initialized. Hence when this peer handle is deleted upon the subsequent peer delete, the info_lock and bufq resources are freed without being initialized. Initialize the peer info_lock and bufq resources when the peer handle is being reused. CRs-Fixed: 2476985 Change-Id: Ib442b02e05b8934a6f7c614e1fc643598637fea5
This commit is contained in:
parent
17254eddc8
commit
746c5c67d6
1 changed files with 4 additions and 0 deletions
|
|
@ -5093,6 +5093,10 @@ static void *dp_peer_create_wifi3(struct cdp_vdev *vdev_handle,
|
|||
peer->ctrl_peer = ctrl_peer;
|
||||
|
||||
dp_local_peer_id_alloc(pdev, peer);
|
||||
|
||||
qdf_spinlock_create(&peer->peer_info_lock);
|
||||
dp_peer_rx_bufq_resources_init(peer);
|
||||
|
||||
DP_STATS_INIT(peer);
|
||||
DP_STATS_UPD(peer, rx.avg_rssi, INVALID_RSSI);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue