瀏覽代碼

qcacld-3.0: Reject set MC list if adapter is not up

__hdd_set_multicast_list() currently does not validate the adapter
before forwarding the request to PMO. Make sure the adapter is valid
and up before forwarding the request to PMO.

Change-Id: I738da67a1e501e71b8ad748ff50e70088ed77747
CRs-Fixed: 2086025
Dustin Brown 7 年之前
父節點
當前提交
c788acb242
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      core/hdd/src/wlan_hdd_main.c

+ 4 - 0
core/hdd/src/wlan_hdd_main.c

@@ -2767,6 +2767,10 @@ static void __hdd_set_multicast_list(struct net_device *dev)
 	if (0 != status)
 		goto out;
 
+	status = hdd_validate_adapter(adapter);
+	if (status)
+		goto out;
+
 	mc_list_request = qdf_mem_malloc(sizeof(*mc_list_request));
 	if (!mc_list_request) {
 		hdd_err("Cannot allocate mc_list_request");