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

Commit 545575ff authored by Tingwei Zhang's avatar Tingwei Zhang Committed by Gerrit - the friendly Code Review server
Browse files

coresight: stm: Free channels in stm_output_disclaim



output->nr_chans was set to zero before adding to
master->nr_free. master->nr_free is not set correctly.
This change adds output->nr_chans to master->nr_free
first and sets output->nr_chans to zero.

Change-Id: I901125c1f18e091652b78c5db39ba206af23fdd2
Signed-off-by: default avatarTingwei Zhang <tingwei@codeaurora.org>
parent 5f62bf9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -218,8 +218,8 @@ stm_output_disclaim(struct stm_device *stm, struct stm_output *output)
	bitmap_release_region(&master->chan_map[0], output->channel,
			      ilog2(output->nr_chans));

	output->nr_chans = 0;
	master->nr_free += output->nr_chans;
	output->nr_chans = 0;
}

/*