qcacmn: Add check for NULL pointer

Pointer rx_msdu_link_desc returned from call to function
dp_rx_cookie_2_mon_link_desc which may be NULL and may be
de-referenced latter

CR-Fixed: 2645199
Change-Id: I9ccba61df9571fcc99c5d5493194d5ae43a71a7f
This commit is contained in:
aloksing
2020-03-17 14:45:13 +05:30
committed by nshrivas
orang tua e7d986e168
melakukan 4b45241915
3 mengubah file dengan 3 tambahan dan 3 penghapusan

Melihat File

@@ -225,7 +225,7 @@ dp_rx_mon_mpdu_pop(struct dp_soc *soc, uint32_t mac_id,
dp_rx_cookie_2_mon_link_desc(dp_pdev,
buf_info, mac_id);
qdf_assert(rx_msdu_link_desc);
qdf_assert_always(rx_msdu_link_desc);
hal_rx_msdu_list_get(soc->hal_soc, rx_msdu_link_desc,
&msdu_list, &num_msdus);