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

Commit 1d9e1b65 authored by Dhoat Harpal's avatar Dhoat Harpal
Browse files

soc: qcom: ipc_router_glink_xprt: Fix intent request callback



G-Link driver notifies IPC Router about intent request events in atomic
context. IPC router is allocating from with GFP_KERNEL.

Allocate the memory from atomic pool with GFP_ATOMIC.

CRs-Fixed: 978562
Change-Id: I75a38a2765e06aa490f91a79e5fd5c83f3c12c23
Signed-off-by: default avatarDhoat Harpal <hdhoat@codeaurora.org>
parent 99d7b718
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -472,7 +472,7 @@ static bool glink_xprt_notify_rx_intent_req(void *handle, const void *priv,
		return true;

	qrx_intent_work = kmalloc(sizeof(struct queue_rx_intent_work),
				  GFP_KERNEL);
				  GFP_ATOMIC);
	if (!qrx_intent_work) {
		IPC_RTR_ERR("%s: Couldn't queue rx_intent of %zu bytes\n",
			    __func__, sz);