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

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

Merge "diag: Fix race condition while closing SMD"

parents e11b4f40 e11a12a0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -640,13 +640,12 @@ void diagfwd_close_transport(uint8_t transport, uint8_t peripheral)
		break;
	default:
		return;

	}

	mutex_lock(&driver->diagfwd_channel_mutex);
	fwd_info = &early_init_info[transport][peripheral];
	if (fwd_info->p_ops && fwd_info->p_ops->close)
		fwd_info->p_ops->close(fwd_info->ctxt);
	mutex_lock(&driver->diagfwd_channel_mutex);
	fwd_info = &early_init_info[transport_open][peripheral];
	dest_info = &peripheral_info[TYPE_CNTL][peripheral];
	dest_info->inited = 1;