diff options
| author | Ashish Kumar Dhanotiya <adhanoti@codeaurora.org> | 2018-06-16 15:11:27 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-06-22 10:28:48 -0700 |
| commit | 9ed995050a781fb2d9bee0bb70550c5a05da0cdc (patch) | |
| tree | 86e36ae0f5c53afe5b3c7ef72d7656bbcc272b0f | |
| parent | d031ac7685bf05c15d3e8c7032302504cf7c02e7 (diff) | |
qcacld-3.0: Validate hdd_ctx in set peer authorized event
Add a check to validate hdd context in
hdd_set_peer_authorized_event api.
Change-Id: If3f2ed8262f0690d3633da9033531d53709db6e6
CRs-Fixed: 2259273
| -rw-r--r-- | core/hdd/src/wlan_hdd_assoc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 8aa30132d3de..6fda307295b1 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1874,6 +1874,10 @@ static void hdd_set_peer_authorized_event(uint32_t vdev_id) hdd_context_t *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); hdd_adapter_t *adapter = NULL; + if (!hdd_ctx) { + hdd_err("Invalid hdd context"); + return; + } adapter = hdd_get_adapter_by_vdev(hdd_ctx, vdev_id); if (adapter == NULL) { hdd_err("Invalid vdev_id"); |
