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
此提交包含在:
@@ -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");
|
||||
|
新增問題並參考
封鎖使用者