Merge "coresight: tmc: skip tmc read if mem allocaiton failed"
This commit is contained in:
commit
e76e6c8d93
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue