msm: ipa3: Fix to validate check for IP type
Add proper check for validating the IP type while sending request for ul-filter-rule install. Change-Id: I170230310884f176cf41d5ae20287f6d74a4bc29 Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
This commit is contained in:
parent
ebbd0af9c7
commit
53f933ef2d
1 changed files with 3 additions and 2 deletions
|
@ -824,10 +824,11 @@ int ipa3_qmi_ul_filter_request_send(
|
|||
if (req->firewall_rules_list[i].ip_type !=
|
||||
QMI_IPA_IP_TYPE_V4_V01 &&
|
||||
req->firewall_rules_list[i].ip_type !=
|
||||
QMI_IPA_IP_TYPE_V6_V01)
|
||||
QMI_IPA_IP_TYPE_V6_V01) {
|
||||
IPAWANERR("Invalid IP type %d\n",
|
||||
req->firewall_rules_list[i].ip_type);
|
||||
return -EINVAL;
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
req_desc.max_msg_len =
|
||||
|
|
Loading…
Add table
Reference in a new issue