Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24dbcc01 authored by Ananya Gupta's avatar Ananya Gupta Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Increase timeout for vdev_del_event

Race condition occurred as rx_thread did not get scheduled
before timeout and gro flush happened in vdev context. At
the same time, rx thread got scheduled and add skb to the
napi queue resulting in crash.
To fix this, Increase the timeout value so rx_thread gets
time to wake up, do gro flush and reset the vdev_del_event.

Change-Id: I2075eda91b1568cce3083869f510fc212dd721f8
CRs-Fixed: 2949803
parent 0d55a68c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -25,7 +25,11 @@
#include <cds_sched.h>

/* Timeout in ms to wait for a DP rx thread */
#ifdef HAL_CONFIG_SLUB_DEBUG_ON
#define DP_RX_THREAD_WAIT_TIMEOUT 4000
#else
#define DP_RX_THREAD_WAIT_TIMEOUT 2000
#endif

#define DP_RX_TM_DEBUG 0
#if DP_RX_TM_DEBUG