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

Commit c93796d7 authored by Jeff Hugo's avatar Jeff Hugo
Browse files

soc: qcom: glink_smd_xprt: Make tx() atomic



Some client usecases may cause tx() to be called in atomic context, which
leads to a sleeping while atomic warning due to a GFP_KERNEL allocation.
Make the allocation GFP_ATOMIC to silence the warning.

Change-Id: I02a24ab3cd3fd870c8554141583b14a123d80c66
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 524ee48d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1477,7 +1477,7 @@ static int tx(struct glink_transport_if *if_ptr, uint32_t lcid,
	pctx->size_remaining -= rc;
	if (!pctx->size_remaining) {
		smd_write_end(ch->smd_ch);
		tx_done = kmalloc(sizeof(*tx_done), GFP_KERNEL);
		tx_done = kmalloc(sizeof(*tx_done), GFP_ATOMIC);
		tx_done->ch = ch;
		tx_done->iid = pctx->riid;
		INIT_WORK(&tx_done->work, process_tx_done);