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

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

Merge "coresight: tmc: skip tmc read if mem allocaiton failed"

parents 4fc7d493 2b5e9d5c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1143,6 +1143,12 @@ static int tmc_read_prepare(struct tmc_drvdata *drvdata)
		goto err;
	}

	if (drvdata->config_type == TMC_CONFIG_TYPE_ETR &&
	    drvdata->vaddr == NULL) {
		ret = -ENOMEM;
		goto err;
	}

	if (!drvdata->enable)
		goto out;