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

Commit a7d0a8e1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 941a79a4 68b52510
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -4426,7 +4426,7 @@ int ipa3_is_vlan_mode(enum ipa_vlan_ifaces iface, bool *res)
		return -EINVAL;
		return -EINVAL;
	}
	}


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