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

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

Merge "msm: ipa: rmnet_ipa: Fix array out of bounds"

parents 4112c312 9f65daf4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3706,6 +3706,13 @@ static inline int rmnet_ipa3_delete_lan_client_info
	int i;
	struct ipa_tether_device_info *teth_ptr = NULL;

	/* Check if Device type is valid. */
	if (device_type >= IPACM_MAX_CLIENT_DEVICE_TYPES ||
		device_type < 0) {
		IPAWANERR("Invalid Device type: %d\n", device_type);
		return -EINVAL;
	}

	/* Check if the request is to clean up all clients. */
	teth_ptr = &rmnet_ipa3_ctx->tether_device[device_type];