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

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

Merge "msm: sde: change error checking of return value on dma map ops"

parents d4ce7dd9 c73d8b84
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ int sde_smmu_map_dma_buf(struct dma_buf *dma_buf,

	rc = dma_map_sg_attrs(sde_smmu->dev, table->sgl, table->nents, dir,
			attrs);
	if (rc != table->nents) {
	if (!rc) {
		SDEROT_ERR("dma map sg failed\n");
		return -ENOMEM;
	}