qcacmn: Add missing lock initialization for tx_lock used for me_buf_pool

CRs-Fixed: 2004658
Change-Id: I930fc823ce2b4d4a91f0bc949291d199ba783862
This commit is contained in:
Pamidipati, Vijay 2017-05-31 10:06:34 +05:30 • committed by snandini
commit 9c9a2871a7

View file

@ -1175,6 +1175,7 @@ static struct cdp_pdev *dp_pdev_attach_wifi3(struct cdp_soc_t *txrx_soc,
TAILQ_INIT(&pdev->vdev_list);
pdev->vdev_count = 0;
qdf_spinlock_create(&pdev->tx_mutex);
qdf_spinlock_create(&pdev->neighbour_peer_mutex);
TAILQ_INIT(&pdev->neighbour_peers_list);
@ -1370,6 +1371,7 @@ static void dp_pdev_detach_wifi3(struct cdp_pdev *txrx_pdev, int force)
dp_rx_pdev_mon_detach(pdev);
dp_neighbour_peers_detach(pdev);
qdf_spinlock_destroy(&pdev->tx_mutex);
/* Setup per PDEV REO rings if configured */
if (wlan_cfg_per_pdev_rx_ring(soc->wlan_cfg_ctx)) {