qcacmn: Skip history record if memory allocation fails

Skip the recording of rx error ring and rx reinject
history if the memory allocation for the history
fails during the attach.

Change-Id: Ifa74937d0c37e6013ccaec851dab7d9e53057ac2
CRs-Fixed: 2767579
Šī revīzija ir iekļauta:
Rakesh Pillai
2020-09-02 11:30:20 +05:30
revīziju iesūtīja snandini
vecāks a8d0770765
revīzija 6b95713d00
2 mainīti faili ar 2 papildinājumiem un 2 dzēšanām

Parādīt failu

@@ -1164,7 +1164,7 @@ dp_rx_reinject_ring_record_entry(struct dp_soc *soc, uint64_t paddr,
struct dp_buf_info_record *record;
uint32_t idx;
if (qdf_unlikely(soc->rx_reinject_ring_history))
if (qdf_unlikely(!soc->rx_reinject_ring_history))
return;
idx = dp_history_get_next_index(&soc->rx_reinject_ring_history->index,