소스 검색

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 년 전
부모
커밋
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,