Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0465f13e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa3: Fix to validate check for IP type"

parents 483afabe 8ea89f12
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -838,11 +838,12 @@ 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;
		}
	}

	req_desc.max_msg_len =
		QMI_IPA_INSTALL_UL_FIREWALL_RULES_REQ_MAX_MSG_LEN_V01;