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
2017-08-01 17:43:51 -07:00
提交者 Anjaneedevi Kapparapu
父節點 2eb1e45863
當前提交 c788acb242

查看文件

@@ -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");