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

Commit 68ca382b authored by Jeff Hugo's avatar Jeff Hugo
Browse files

soc: qcom: glink: Make ch_get_dummy_rx_intent() atomic



Transports may end up invoking ch_get_dummy_rx_intent() in atomic context,
which will lead to a sleeping while atomic warning due to a GFP_KERNEL
allocation.  Change the allocation to GFP_ATOMIC to silence the warning.

Change-Id: If3f94ec0eb8d42f37713e084ddfc2aa9e81fe978
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 42162e39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -821,7 +821,7 @@ struct glink_core_rx_intent *ch_get_dummy_rx_intent(struct channel_ctx *ctx,
	intent = ch_get_free_local_rx_intent(ctx);
	if (!intent) {
		intent = kzalloc(sizeof(struct glink_core_rx_intent),
								GFP_KERNEL);
								GFP_ATOMIC);
		if (!intent) {
			GLINK_ERR_CH(ctx,
			"%s: Memory Allocation for local rx_intent failed",