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

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

Merge "soc: qcom: glink: Free if_ptr before freeing dummy transport"

parents 114bbf9f bdc08802
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1653,6 +1653,8 @@ void ch_purge_intent_lists(struct channel_ctx *ctx)
				&ctx->local_rx_intent_list, list) {
				&ctx->local_rx_intent_list, list) {
		ctx->notify_rx_abort(ctx, ctx->user_priv,
		ctx->notify_rx_abort(ctx, ctx->user_priv,
				ptr_intent->pkt_priv);
				ptr_intent->pkt_priv);
		ctx->transport_ptr->ops->deallocate_rx_intent(
					ctx->transport_ptr->ops, ptr_intent);
		list_del(&ptr_intent->list);
		list_del(&ptr_intent->list);
		kfree(ptr_intent);
		kfree(ptr_intent);
	}
	}
@@ -3667,6 +3669,8 @@ static void glink_dummy_xprt_ctx_release(struct rwref_lock *xprt_st_lock)
	GLINK_INFO("%s: freeing transport [%s->%s]context\n", __func__,
	GLINK_INFO("%s: freeing transport [%s->%s]context\n", __func__,
				xprt_ctx->name,
				xprt_ctx->name,
				xprt_ctx->edge);
				xprt_ctx->edge);
	kfree(xprt_ctx->ops);
	xprt_ctx->ops = NULL;
	kfree(xprt_ctx);
	kfree(xprt_ctx);
}
}