mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
coresight: Remove erroneous dma_free_coherent in tmc_probe
commitde5461970b
("coresight: tmc: allocating memory when needed") removed the static allocation of buffer for the trace data in ETR mode in tmc_probe. However it failed to remove the "devm_free_coherent" in tmc_probe when the probe fails due to other reasons. This patch gets rid of the incorrect dma_free_coherent() call. Fixes: commitde5461970b
("coresight: tmc: allocating memory when needed") Cc: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b1149ad917
commit
481e46fe7a
1 changed files with 0 additions and 3 deletions
|
@ -388,9 +388,6 @@ static int tmc_probe(struct amba_device *adev, const struct amba_id *id)
|
||||||
err_misc_register:
|
err_misc_register:
|
||||||
coresight_unregister(drvdata->csdev);
|
coresight_unregister(drvdata->csdev);
|
||||||
err_devm_kzalloc:
|
err_devm_kzalloc:
|
||||||
if (drvdata->config_type == TMC_CONFIG_TYPE_ETR)
|
|
||||||
dma_free_coherent(dev, drvdata->size,
|
|
||||||
drvdata->vaddr, drvdata->paddr);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue