mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
qcacld-3.0: Fix WLAN IPA NULL pointer dereference
When ipa_check_hw_present() returns false, g_ipa_config is left as NULL pointer. ipa_config_is_enabled() and ipa_config_is_uc_enabled() will lead to NULL pointer dereference. Fix is to check against g_ipa_config NULL pointer in ipa_config_is_enabled() and ipa_config_is_uc_enabled(). Change-Id: I95da7aede7d72db8591102eea7504cad59686105 CRs-Fixed: 2246224
This commit is contained in:
parent
61bcecc32e
commit
4f0eae1817
1 changed files with 2 additions and 2 deletions
|
|
@ -81,12 +81,12 @@ void ipa_config_update(struct wlan_ipa_config *config)
|
|||
|
||||
bool ipa_config_is_enabled(void)
|
||||
{
|
||||
return wlan_ipa_is_enabled(g_ipa_config);
|
||||
return g_ipa_config ? wlan_ipa_is_enabled(g_ipa_config) : 0;
|
||||
}
|
||||
|
||||
bool ipa_config_is_uc_enabled(void)
|
||||
{
|
||||
return wlan_ipa_uc_is_enabled(g_ipa_config);
|
||||
return g_ipa_config ? wlan_ipa_uc_is_enabled(g_ipa_config) : 0;
|
||||
}
|
||||
|
||||
QDF_STATUS ipa_obj_setup(struct wlan_ipa_priv *ipa_ctx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue