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

Commit 7438ce4e authored by Vikram Mulukutla's avatar Vikram Mulukutla Committed by Deepak Katragadda
Browse files

qcom: pil-msa: Fix memory leak



release_firmware needs to be invoked to free the memory
associated with the MBA firmware image that is allocated
by request_firmware.

Change-Id: Ief280adc61087ef42903590b253e405621843ece
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 0afe4e96
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -353,6 +353,7 @@ int pil_mss_reset_load_mba(struct pil_desc *pil)

	/* The MBA doesn't run from DDR, free the memory now. */
	dma_free_coherent(pil->dev, MBA_SIZE, drv->mba_virt, drv->mba_phys);
	release_firmware(fw);

	return 0;