qcacmn: fix error in NULL checking of rx_ring_history

rx_ring_history is an array of pointers, address of pointer is
always a non-NULL value, this always passed the NULL check,
which leads to NULL pointer dereference, fixing the same.

Change-Id: I401203a6f2a5930869cf4002ac0e714d3fdba62f
CRs-Fixed: 2844038
This commit is contained in:
Vevek Venkatesan
2020-12-23 20:08:11 +05:30
committed by snandini
parent b3511e0844
commit 16066cae2b

View File

@@ -2158,7 +2158,7 @@ dp_rx_ring_record_entry(struct dp_soc *soc, uint8_t ring_num,
struct hal_buf_info hbi;
uint32_t idx;
if (qdf_unlikely(!&soc->rx_ring_history[ring_num]))
if (qdf_unlikely(!soc->rx_ring_history[ring_num]))
return;
hal_rx_reo_buf_paddr_get(ring_desc, &hbi);