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

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

soc: qcom: ipc_router_glink_xprt: Fix while handling CONNECTED event



The channel CONNECTED event may happen before the call to glink_open()
returns. Cache the channel handle under that scenario.

CRs-Fixed: 913647
Change-Id: I3777acdff3423b96cb527a826415faca11d1ed19
Signed-off-by: default avatarKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
parent f5d3db32
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -475,6 +475,8 @@ static void glink_xprt_notify_state(void *handle, const void *priv,
	  __func__, glink_xprtp->edge, glink_xprtp->transport, event);
	switch (event) {
	case GLINK_CONNECTED:
		if (IS_ERR_OR_NULL(glink_xprtp->ch_hndl))
			glink_xprtp->ch_hndl = handle;
		mutex_lock(&glink_xprtp->ss_reset_lock);
		glink_xprtp->ss_reset = 0;
		mutex_unlock(&glink_xprtp->ss_reset_lock);