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

Commit f960a325 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: Fix ctx initialization with magic number"

parents b14309cd 6a763fd3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2582,6 +2582,7 @@ void *glink_open(const struct glink_open_config *cfg)
	ctx->notify_tx_abort = cfg->notify_tx_abort;
	ctx->notify_tx_abort = cfg->notify_tx_abort;
	ctx->notify_rx_tracer_pkt = cfg->notify_rx_tracer_pkt;
	ctx->notify_rx_tracer_pkt = cfg->notify_rx_tracer_pkt;
	ctx->notify_remote_rx_intent = cfg->notify_remote_rx_intent;
	ctx->notify_remote_rx_intent = cfg->notify_remote_rx_intent;
	ctx->magic_number = GLINK_CTX_CANARY;


	if (!ctx->notify_rx_intent_req)
	if (!ctx->notify_rx_intent_req)
		ctx->notify_rx_intent_req = glink_dummy_notify_rx_intent_req;
		ctx->notify_rx_intent_req = glink_dummy_notify_rx_intent_req;
@@ -2617,7 +2618,6 @@ void *glink_open(const struct glink_open_config *cfg)


	GLINK_INFO_CH(ctx, "%s: Created channel, sent OPEN command. ctx %p\n",
	GLINK_INFO_CH(ctx, "%s: Created channel, sent OPEN command. ctx %p\n",
			__func__, ctx);
			__func__, ctx);
	ctx->magic_number = GLINK_CTX_CANARY;
	return ctx;
	return ctx;
}
}
EXPORT_SYMBOL(glink_open);
EXPORT_SYMBOL(glink_open);