qcacld-3.0: Add pointer NULL check in hdd_association_completion_handler()
Add pointer assoc_req and assoc_rsp NULL check before sending connection status in hdd_connect_result(). Change-Id: Ia0ba2140e82abdaf3dde74035fec57f897d9e8a5 CRs-Fixed: 2642567
This commit is contained in:
parent
d5f72dfe5a
commit
43ddef92e8
@ -3557,7 +3557,7 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
|
||||
/* inform association failure event to nl80211 */
|
||||
if (eCSR_ROAM_RESULT_ASSOC_FAIL_CON_CHANNEL ==
|
||||
roam_result) {
|
||||
if (roam_info)
|
||||
if (roam_info && assoc_req && assoc_rsp)
|
||||
hdd_connect_result(dev,
|
||||
roam_info->bssid.bytes,
|
||||
roam_info, assoc_req,
|
||||
@ -3577,7 +3577,7 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
|
||||
connect_timeout,
|
||||
timeout_reason);
|
||||
} else {
|
||||
if (roam_info)
|
||||
if (roam_info && assoc_req && assoc_rsp)
|
||||
hdd_connect_result(dev,
|
||||
roam_info->bssid.bytes,
|
||||
roam_info, assoc_req,
|
||||
|
Loading…
Reference in New Issue
Block a user