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

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

Merge "msm: ipa3: fix the Use-after-free in ipa3_dma_destroy"

parents c75b2fa1 70a9c3e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -939,10 +939,10 @@ void ipa3_dma_destroy(void)

	ipa3_dma_debugfs_destroy();
	kmem_cache_destroy(ipa3_dma_ctx->ipa_dma_xfer_wrapper_cache);
	kfree(ipa3_dma_ctx);
	dma_free_coherent(ipa3_ctx->pdev, IPA_DMA_DUMMY_BUFF_SZ * 4,
		ipa3_dma_ctx->ipa_dma_dummy_src_sync.base,
		ipa3_dma_ctx->ipa_dma_dummy_src_sync.phys_base);
	kfree(ipa3_dma_ctx);
	ipa3_dma_ctx = NULL;

	IPADMA_FUNC_EXIT();