|
@@ -1878,6 +1878,10 @@ static void hdd_set_peer_authorized_event(uint32_t vdev_id)
|
|
|
struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
|
|
struct hdd_adapter *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");
|