Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 530942ae authored by Vevek Venkatesan's avatar Vevek Venkatesan Committed by Gerrit - the friendly Code Review server
Browse files

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
parent 6064c741
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1919,7 +1919,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);