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

Commit 9ac315ee authored by Ashok Vuyyuru's avatar Ashok Vuyyuru
Browse files

msm: ipa4: Fix to configure pending packelist WAN consumer pipe



When coalescing pipe and WAN consumer pipe are configuring case
pending list pointer was not initlizing causing null pointer deference.
Add changes to initialize pending packet list for WAN consumer pipe.

Change-Id: I8daa75522be7f6a1fa5eb60e025992539be4b124
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent e8d900e1
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -1216,7 +1216,7 @@ static int ipa_setup_coal_def_pipe(struct ipa_sys_connect_params *sys_in,
{
{
	struct ipa3_ep_context *ep;
	struct ipa3_ep_context *ep;
	int result = -EINVAL;
	int result = -EINVAL;
	int ipa_ep_idx;
	int ipa_ep_idx, i;


	ipa_ep_idx = ipa3_get_ep_mapping(sys_in->client);
	ipa_ep_idx = ipa3_get_ep_mapping(sys_in->client);


@@ -1300,6 +1300,9 @@ static int ipa_setup_coal_def_pipe(struct ipa_sys_connect_params *sys_in,
	ep->sys->repl = ep_coalescing->sys->repl;
	ep->sys->repl = ep_coalescing->sys->repl;
	ipa3_replenish_rx_cache(ep->sys);
	ipa3_replenish_rx_cache(ep->sys);


	for (i = 0; i < GSI_VEID_MAX; i++)
		INIT_LIST_HEAD(&ep->sys->pending_pkts[i]);

	ipa3_ctx->skip_ep_cfg_shadow[ipa_ep_idx] = ep->skip_ep_cfg;
	ipa3_ctx->skip_ep_cfg_shadow[ipa_ep_idx] = ep->skip_ep_cfg;


	result = ipa3_enable_data_path(ipa_ep_idx);
	result = ipa3_enable_data_path(ipa_ep_idx);