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

Commit 6137ba9c authored by Hamad Kadmany's avatar Hamad Kadmany
Browse files

msm: tspp: Fix memory leak



SPS end point was not released when tspp
output pipe was closed.

Change-Id: If4c18186e02b2ddd2c94fddc191a4c01a93a49a0
Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent 614d6d7e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1712,6 +1712,8 @@ int tspp_close_channel(u32 dev, u32 channel_id)
	dma_free_coherent(NULL, config->desc.size, config->desc.base,
		config->desc.phys_base);

	sps_free_endpoint(channel->pipe);

	tspp_destroy_buffers(channel_id, channel);
	if (channel->dma_pool) {
		dma_pool_destroy(channel->dma_pool);