diff options
| author | Praveen Kurapati <pkurapat@codeaurora.org> | 2019-05-21 16:08:10 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-06-10 04:34:31 -0700 |
| commit | bc914679ea337c83e657ae86ae061ac45cbcaab6 (patch) | |
| tree | 6e27334963fed674399f962ca52859569f0e165a | |
| parent | 5c004decb393647c7c86e624c77d230b74391853 (diff) | |
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>
| -rw-r--r-- | drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c b/drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c index fe3edb5db9b2..d8e128eee8cc 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c @@ -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 = |
