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

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

Merge "qcom: pil-msa: Move freeing DMA memory till after MBA authenticates image"

parents d23bcffb 38cf9ce3
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -351,8 +351,6 @@ int pil_mss_reset_load_mba(struct pil_desc *pil)
		goto err_mss_reset;
		goto err_mss_reset;
	}
	}


	/* 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);
	release_firmware(fw);


	return 0;
	return 0;
@@ -459,6 +457,10 @@ static int pil_msa_mba_auth(struct pil_desc *pil)
		ret = -EINVAL;
		ret = -EINVAL;
	}
	}


	if (drv->q6->mba_virt)
		/* Reclaim MBA memory. */
		dma_free_coherent(pil->dev, MBA_SIZE, drv->q6->mba_virt,
							drv->q6->mba_phys);
	return ret;
	return ret;
}
}