Просмотр исходного кода

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
Rakesh Pillai 4 лет назад
Родитель
Сommit
6b95713d00
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      dp/wifi3.0/dp_rx_defrag.c
  2. 1 1
      dp/wifi3.0/dp_rx_err.c

+ 1 - 1
dp/wifi3.0/dp_rx_defrag.c

@@ -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,

+ 1 - 1
dp/wifi3.0/dp_rx_err.c

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