diff options
| author | Mukul Sharma <mukul@codeaurora.org> | 2016-09-12 15:59:24 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-21 17:05:15 -0700 |
| commit | 80edc7843e3cc7cdc355a0a3329f9f41db61aa3f (patch) | |
| tree | ce0f646a8c9a8cd10df8053d5f0cdcfd4998466d | |
| parent | c4de4ef6f83b3a975e31cf4086f261edd21d5bcf (diff) | |
qcacld-3.0: protect mgmt flow in SSR case
qcacld-2.0 to qcacld-3.0 propagation
Fix the race condition, between 2 kernel worker threads
while shutdown is in progress.
Change-Id: I6e71ae55c57dac8c2adb36167783615e218cb481
CRs-Fixed: 834362
| -rw-r--r-- | core/wma/src/wma_mgmt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index 1e8b8bf982cb..5a4690eb576c 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -3140,6 +3140,11 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data, return -EINVAL; } + if (cds_is_driver_recovering()) { + WMA_LOGW(FL("Recovery in progress")); + return -EINVAL; + } + qdf_mem_zero(rx_pkt, sizeof(*rx_pkt)); /* |
