qcacmn: Add Sanity Checks
Stats are updated periodically and are categorized to soc, pdev, and vdev While the stats are getting updated and if pdev, or vdev gets detached in the same time, the stats handlers will deference a NULL pointer Hence Add basic sanity checks to DP layer for soc, pdev and vdev inside stat handlers Change-Id: Ic4919b9c205679e1d6e7c571c577339be65c1bad
This commit is contained in:
@@ -1225,6 +1225,9 @@ static void dp_rx_msdu_stats_update(struct dp_soc *soc,
|
||||
if ((soc->process_rx_status) &&
|
||||
hal_rx_attn_first_mpdu_get(rx_tlv_hdr)) {
|
||||
#if defined(FEATURE_PERPKT_INFO) && WDI_EVENT_ENABLE
|
||||
if (!vdev->pdev)
|
||||
return;
|
||||
|
||||
dp_wdi_event_handler(WDI_EVENT_UPDATE_DP_STATS, vdev->pdev->soc,
|
||||
&peer->stats, peer_id,
|
||||
UPDATE_PEER_STATS,
|
||||
|
Viittaa uudesa ongelmassa
Block a user