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

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

Merge "msm: ipa3: Fix to validate the NAT table entries during NAT table init"

parents ccb7d349 b19893d4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1364,8 +1364,9 @@ int ipa3_nat_init_cmd(
		goto bail;
	}

	if (init->table_entries == 0) {
		IPAERR_RL("Table entries is zero\n");
	if (init->table_entries == 0 ||
		init->table_entries == U16_MAX) {
		IPAERR_RL("Table entries is %d\n", init->table_entries);
		result = -EPERM;
		goto bail;
	}