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

Commit 21c9b0c8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: ipc_router: Handle error condition"

parents 1416c5d3 3ae3cf65
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2765,8 +2765,11 @@ int msm_ipc_router_read_msg(struct msm_ipc_port *port_ptr,
	}

	*data = msm_ipc_router_skb_to_buf(pkt->pkt_fragment_q, ret);
	if (!(*data))
	if (!(*data)) {
		IPC_RTR_ERR("%s: Buf conversion failed\n", __func__);
		release_pkt(pkt);
		return -ENOMEM;
	}

	*len = ret;
	release_pkt(pkt);