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

Commit 4cad91b2 authored by Vinod Koul's avatar Vinod Koul
Browse files

dmaengine: qcom_hidma_lli: kill the tasklets upon exit



drivers should ensure that tasklets are killed, so that they can't be
run after driver remove is executed

Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Cc: Sinan Kaya <okaya@codeaurora.org>
parent 376ab15f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -831,6 +831,7 @@ int hidma_ll_uninit(struct hidma_lldev *lldev)

	required_bytes = sizeof(struct hidma_tre) * lldev->nr_tres;
	tasklet_kill(&lldev->task);
	tasklet_kill(&lldev->rst_task);
	memset(lldev->trepool, 0, required_bytes);
	lldev->trepool = NULL;
	lldev->pending_tre_count = 0;