qcacld-3.0: Add NULL check for twt_psoc_obj pointer
Add NULL check for twt_psoc_obj pointer to avoid NULL pointer deference in function wlan_twt_get_pmo_allowed(). Change-Id: I1e5c24b843845c89e8779c5e69433c41c2311829 CRs-Fixed: 3626932
Este commit está contenido en:

cometido por
Ravindra Konda

padre
0b8045dbf6
commit
10684397cd
@@ -446,8 +446,8 @@ wlan_twt_get_pmo_allowed(struct wlan_objmgr_psoc *psoc)
|
||||
|
||||
twt_psoc_obj = wlan_twt_psoc_get_comp_private_obj(psoc);
|
||||
|
||||
if (twt_psoc_obj->twt_pmo_disabled)
|
||||
if (!twt_psoc_obj || twt_psoc_obj->twt_pmo_disabled)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Referencia en una nueva incidencia
Block a user