diff options
| -rw-r--r-- | core/hdd/src/wlan_hdd_ext_scan.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_ext_scan.c b/core/hdd/src/wlan_hdd_ext_scan.c index 0b7bf975560f..3c5341a5a74c 100644 --- a/core/hdd/src/wlan_hdd_ext_scan.c +++ b/core/hdd/src/wlan_hdd_ext_scan.c @@ -3973,6 +3973,11 @@ static int hdd_extscan_passpoint_fill_network_list( expected_networks = req_msg->num_networks; index = 0; + + if (!tb[QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY]) { + hdd_err("attr network array failed"); + return -EINVAL; + } nla_for_each_nested(networks, tb[QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY], rem1) { |
