mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: SSR protection for linux/crda reg_notifier api
qcacld-2.0 to qcacld-3.0 propagation if SSR trigger in middle of execution of linux_reg_notifier /crda_reg_notifier, driver may access uninitialized data. Hence Driver need to protect these function from SSR. Change-Id: I9bdc6851a44fecc8353e94b38eb1dd4f63e58604 CRs-Fixed: 798672
This commit is contained in:
parent
b4a6bc0af8
commit
14aa8ea2ee
1 changed files with 17 additions and 2 deletions
|
|
@ -1208,13 +1208,13 @@ static void restore_custom_reg_settings(struct wiphy *wiphy)
|
|||
#endif
|
||||
|
||||
/**
|
||||
* hdd_reg_notifier() - regulatory notifier
|
||||
* __hdd_reg_notifier() - regulatory notifier
|
||||
* @wiphy: wiphy
|
||||
* @request: regulatory request
|
||||
*
|
||||
* Return: void or int
|
||||
*/
|
||||
void hdd_reg_notifier(struct wiphy *wiphy,
|
||||
void __hdd_reg_notifier(struct wiphy *wiphy,
|
||||
struct regulatory_request *request)
|
||||
{
|
||||
hdd_context_t *hdd_ctx = wiphy_priv(wiphy);
|
||||
|
|
@ -1359,6 +1359,21 @@ void hdd_reg_notifier(struct wiphy *wiphy,
|
|||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* hdd_reg_notifier() - regulatory notifier
|
||||
* @wiphy: wiphy
|
||||
* @request: regulatory request
|
||||
*
|
||||
* Return: void or int
|
||||
*/
|
||||
void hdd_reg_notifier(struct wiphy *wiphy,
|
||||
struct regulatory_request *request)
|
||||
{
|
||||
cds_ssr_protect(__func__);
|
||||
__hdd_reg_notifier(wiphy, request);
|
||||
cds_ssr_unprotect(__func__);
|
||||
}
|
||||
|
||||
/**
|
||||
* cds_regulatory_init() - regulatory_init
|
||||
* Return: CDF_STATUS
|
||||
|
|
|
|||
Loading…
Reference in a new issue