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

Commit 8b6fc8ae authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "byte-cntr: check pcie channel status before closing it"

parents 6f597642 224fd98c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ EXPORT_SYMBOL(tmc_etr_byte_cntr_stop);

static void etr_pcie_close_channel(struct byte_cntr *byte_cntr_data)
{
	if (!byte_cntr_data)
	if (!byte_cntr_data || !byte_cntr_data->pcie_chan_opened)
		return;

	mutex_lock(&byte_cntr_data->byte_cntr_lock);