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

Commit a3c44d2b authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: glink_smem_native_xprt: Add print for GFP_ATOMIC alloc fail



Add error message for GFP_ATOMIC allocation failure. Keep current
design to drop packet if allocation fails. This print will help debug
issues where a system critical client fails because of a dropped GLINK
packet.

CRs-Fixed: 1112151
Change-Id: I6a69cbf1f88295009284d726a06fa5affd4cc591
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 12782306
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -702,10 +702,15 @@ static void process_rx_data(struct edge_info *einfo, uint16_t cmd_id,
	} else if (intent->data == NULL) {
		if (einfo->intentless) {
			intent->data = kmalloc(cmd.frag_size, GFP_ATOMIC);
			if (!intent->data)
			if (!intent->data) {
				err = true;
			else
				GLINK_ERR(
				"%s: atomic alloc fail ch %d liid %d size %d\n",
						__func__, rcid, intent_id,
						cmd.frag_size);
			} else {
				intent->intent_size = cmd.frag_size;
			}
		} else {
			GLINK_ERR(
				"%s: intent for ch %d liid %d has no data buff\n",