فهرست منبع

qcacmn: Check for equal case in nbuf len sanity

MSDU with len 1654 is received in the REO2SW ring and
the total len of the pkt would be 1654 + 392 (pkt tlvs)
+ 2 (l2 hdr padding) = 2048bytes. The nbuf len sanity
checks for strictly less than 2048 bytes which results
in the assertion failure.

Fix is to add the equal case when validating the
nbuf len.

Change-Id: I7e5d1df10339c8d7908a12001c2322028965a8fe
CRs-Fixed: 2916351
Yeshwanth Sriram Guntuka 4 سال پیش
والد
کامیت
a5e6565dd6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      dp/wifi3.0/dp_rx.c

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

@@ -1939,7 +1939,7 @@ dp_rx_desc_nbuf_len_sanity_check(struct dp_soc *soc,
 	struct rx_desc_pool *rx_desc_pool;
 
 	rx_desc_pool = &soc->rx_desc_buf[0];
-	qdf_assert_always(pkt_len < rx_desc_pool->buf_size);
+	qdf_assert_always(pkt_len <= rx_desc_pool->buf_size);
 }
 #else
 static inline