mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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
This commit is contained in:
parent
2eb1e45863
commit
c788acb242
1 changed files with 4 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue