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

Commit 88ade84d authored by Steven Cahail's avatar Steven Cahail
Browse files

soc: qcom: glink: Check for NULL transmissions



The G-Link core currently assumes that no NULL transmissions will be
sent. However, this is not the case - NULL transmissions are
encountered, but G-Link does not support them.

Modify the core to reject NULL transmissions by returning -EINVAL
when one is encountered.

Change-Id: I9a886cc58b7362e3eb4f3d6cfc7466fa36fe055c
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent c57b8e5f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2603,6 +2603,9 @@ static int glink_tx_common(void *handle, void *pkt_priv,
	bool is_atomic = tx_flags & GLINK_TX_SINGLE_THREADED;
	enum local_channel_state_e ch_st;

	if (!size)
		return -EINVAL;

	if (!ctx)
		return -EINVAL;