Prateek Patil b39ec00cf9 icnss2: Add is_idle_shutdown atomic variable to solve race condition
Currently, there might be a scenario where wlan host driver calls
idle_shutdown and at the same time icnss driver receives shutdown
notification for wpss. In this case Race condition might occur for
is_ssr variable which is shared among icnss_wpss_notifier_nb() api
and icnss_idle_shutdown() api.

To resolve this race condition, set is_idle_shutdown atomic variable
in icnss_idle_shutdown() api and check this variable before posting
ICNSS_DRIVER_EVENT_UNREGISTER_DRIVER event.

Change-Id: I34b0c2de9899aeeb77063ea7c3029c3eeaf50a05
CRs-Fixed: 4055232
2025-02-16 10:14:47 -08:00
2023-05-11 13:09:21 -07:00
Description
No description provided
217 MiB
Languages
C 98.9%
C++ 0.7%
Makefile 0.3%
Starlark 0.1%