mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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
This commit is contained in:
parent
beaff57e55
commit
3c74f3edd6
1 changed files with 1 additions and 1 deletions
|
|
@ -1900,7 +1900,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue