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

Commit c30f09b1 authored by Karthikeyan Ramasubramanian's avatar Karthikeyan Ramasubramanian
Browse files

soc: qcom: ipc_router_glink_xprt: Fix receive callback



G-Link driver notifies IPC Router about receive events in atomic context.
Allocate the memory from atomic pool to cache the information about rx
events for deferred processing.

CRs-Fixed: 948393
Change-Id: I09fb7ffd38b5a36b9ef99b6adb76c7e1f0168457
Signed-off-by: default avatarKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
parent a0a14b46
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -416,7 +416,7 @@ static void glink_xprt_notify_rxv(void *handle, const void *priv,
		(struct ipc_router_glink_xprt *)priv;
	struct read_work *rx_work;

	rx_work = kmalloc(sizeof(struct read_work), GFP_KERNEL);
	rx_work = kmalloc(sizeof(*rx_work), GFP_ATOMIC);
	if (!rx_work) {
		IPC_RTR_ERR("%s: couldn't allocate read_work\n", __func__);
		glink_rx_done(glink_xprtp->ch_hndl, ptr, true);