mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
gpu: host1x: Fix a memory leak in 'host1x_remove()'
Add a missing 'host1x_channel_list_free()' call in the remove function,
as already done in the error handling path of the probe function.
Fixes: 8474b02531
("gpu: host1x: Refactor channel allocation code")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
e5d5db1a79
commit
025c6643a8
1 changed files with 1 additions and 0 deletions
|
@ -571,6 +571,7 @@ static int host1x_remove(struct platform_device *pdev)
|
||||||
|
|
||||||
host1x_intr_deinit(host);
|
host1x_intr_deinit(host);
|
||||||
host1x_syncpt_deinit(host);
|
host1x_syncpt_deinit(host);
|
||||||
|
host1x_channel_list_free(&host->channel_list);
|
||||||
host1x_iommu_exit(host);
|
host1x_iommu_exit(host);
|
||||||
host1x_bo_cache_destroy(&host->cache);
|
host1x_bo_cache_destroy(&host->cache);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue