mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Validate NLA attr in hdd_extscan_epno_fill_network_list
NLA attribute QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST used without validation. validate NLA attribute. CRs-Fixed: 2025680 Change-Id: I4da7dbe44325b0ed6346b363b71b558250996f8c
This commit is contained in:
parent
a180e94ab8
commit
c533202e26
1 changed files with 5 additions and 0 deletions
|
|
@ -3728,6 +3728,11 @@ static int hdd_extscan_epno_fill_network_list(
|
|||
|
||||
expected_networks = req_msg->num_networks;
|
||||
index = 0;
|
||||
|
||||
if (!tb[QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST]) {
|
||||
hdd_err("attr networks list failed");
|
||||
return -EINVAL;
|
||||
}
|
||||
nla_for_each_nested(networks,
|
||||
tb[QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST],
|
||||
rem1) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue