From c788acb24227d9caffe87cfc128980a229b1085f Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Tue, 1 Aug 2017 17:43:51 -0700 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 6e1bfb3d248a..0d810fb38d05 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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");