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

Commit 584865f9 authored by Praveen Kurapati's avatar Praveen Kurapati
Browse files

msm: ipa3: fix to off-by-one read issue



There is off-by-one read issue in function ipa3_is_vlan_mode.
Add fix to overcome this issue.

Change-Id: If087a762166f09d8786352de680db6d46b70b794
Signed-off-by: default avatarPraveen Kurapati <pkurapat@codeaurora.org>
parent ea37f3c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6200,7 +6200,7 @@ int ipa3_is_vlan_mode(enum ipa_vlan_ifaces iface, bool *res)
		return -EINVAL;
	}

	if (iface < 0 || iface > IPA_VLAN_IF_MAX) {
	if (iface < 0 || iface >= IPA_VLAN_IF_MAX) {
		IPAERR("invalid iface %d\n", iface);
		return -EINVAL;
	}