qcacmn: Add NULL check for mon_pdev

Add NULL check for monitor_pdev in
dp_disable_enhanced_stats

Change-Id: I0fc67048eefec6868d81be950d73aa8ec77d3317
This commit is contained in:
Chaithanya Garrepalli
2021-12-16 17:07:33 +05:30
committed by Madan Koyyalamudi
parent 60ada52a22
commit f275b95674

View File

@@ -1657,7 +1657,7 @@ dp_disable_enhanced_stats(struct cdp_soc_t *soc, uint8_t pdev_id)
struct dp_mon_pdev *mon_pdev;
if (!pdev)
if (!pdev || !pdev->monitor_pdev)
return QDF_STATUS_E_FAILURE;
mon_pdev = pdev->monitor_pdev;