qcacmn: Add pdev valid check

Add pdev valid check to avoid dereferencing of pointer

Change-Id: I5936797895e250cb6cea3087f273e7631223bc88
CRs-Fixed: 3320380
This commit is contained in:
Azmath Mohammed
2022-10-25 13:29:38 +05:30
committed by Madan Koyyalamudi
parent 6271fe1a98
commit 66a71fac21

View File

@@ -761,6 +761,12 @@ dp_rx_bar_frame_handle(struct dp_soc *soc,
rx_tlv_hdr);
pdev = dp_get_pdev_for_lmac_id(soc, rx_desc->pool_id);
if (!pdev) {
dp_rx_err_debug("%pK: pdev is null for pool_id = %d",
soc, rx_desc->pool_id);
return;
}
_dp_rx_bar_frame_handle(soc, nbuf, mpdu_desc_info, tid, err_status,
err_code);
dp_rx_err_send_pktlog(soc, pdev, mpdu_desc_info, nbuf,