mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacmn: spin-lock init before get ref while peer attach
spin lock is called without init while peer attach move spin-lock init before get ref Change-Id: Ibf21ac6a7b06c62f2e64a2d89154b21183b9c472 CRs-Fixed: 2628750
This commit is contained in:
parent
31bfe1fb2c
commit
8bfa58f189
1 changed files with 1 additions and 1 deletions
|
|
@ -192,6 +192,7 @@ struct wlan_objmgr_peer *wlan_objmgr_peer_obj_create(
|
|||
peer->obj_state = WLAN_OBJ_STATE_ALLOCATED;
|
||||
qdf_atomic_init(&peer->peer_objmgr.ref_cnt);
|
||||
wlan_objmgr_peer_init_ref_id_debug(peer);
|
||||
wlan_objmgr_peer_trace_init_lock(peer);
|
||||
wlan_objmgr_peer_get_ref(peer, WLAN_OBJMGR_ID);
|
||||
/* set vdev to peer */
|
||||
wlan_peer_set_vdev(peer, vdev);
|
||||
|
|
@ -205,7 +206,6 @@ struct wlan_objmgr_peer *wlan_objmgr_peer_obj_create(
|
|||
peer->peer_objmgr.print_cnt = 0;
|
||||
|
||||
qdf_spinlock_create(&peer->peer_lock);
|
||||
wlan_objmgr_peer_trace_init_lock(peer);
|
||||
/* Attach peer to psoc, psoc maintains the node table for the device */
|
||||
if (wlan_objmgr_psoc_peer_attach(psoc, peer) !=
|
||||
QDF_STATUS_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue