mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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:
parent
dbf9842373
commit
59149d43eb
1 changed files with 1 additions and 1 deletions
|
|
@ -2122,7 +2122,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue