mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
qcacld-3.0: Avoid NULL pointer derefence for PDEV
Currently, NULL pointer dereferencing of objmgr PDEV is observed in wlan_objmgr_pdev_get_comp_private_obj. Add NULL check for pdev inside ipa_uc_force_pipe_shutdown and ipa_fw_rejuvenate_send_msg before pass PDEV to wlan_objmgr_pdev_get_comp_private_obj. Change-Id: I4e19cc9c254febabad551aa62f72d2ce4897b852 CRs-Fixed: 2719149
This commit is contained in:
parent
c4ec8d5b9f
commit
2b43ad3c11
1 changed files with 10 additions and 0 deletions
|
|
@ -378,6 +378,11 @@ void ipa_uc_force_pipe_shutdown(struct wlan_objmgr_pdev *pdev)
|
|||
{
|
||||
struct wlan_ipa_priv *ipa_obj;
|
||||
|
||||
if (!pdev) {
|
||||
ipa_debug("objmgr pdev is null!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ipa_config_is_enabled()) {
|
||||
ipa_debug("ipa is disabled");
|
||||
return;
|
||||
|
|
@ -615,6 +620,11 @@ void ipa_fw_rejuvenate_send_msg(struct wlan_objmgr_pdev *pdev)
|
|||
{
|
||||
struct wlan_ipa_priv *ipa_obj;
|
||||
|
||||
if (!pdev) {
|
||||
ipa_debug("objmgr pdev is null!");
|
||||
return;
|
||||
}
|
||||
|
||||
ipa_obj = ipa_pdev_get_priv_obj(pdev);
|
||||
if (!ipa_obj) {
|
||||
ipa_err("IPA object is NULL");
|
||||
|
|
|
|||
Loading…
Reference in a new issue