diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-11-08 00:16:36 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-03-01 13:13:09 +0300 |
commit | 025c6643a81564f066d8381b9e2f4603e0f8438f (patch) | |
tree | a9b42e8f22d1d77715b9ddec2582d542f76d47d2 /drivers/gpu/host1x/dev.c | |
parent | e5d5db1a79a5929b9ced99472f9a748a243d6a69 (diff) | |
download | linux-025c6643a81564f066d8381b9e2f4603e0f8438f.tar.xz |
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: 8474b02531c4 ("gpu: host1x: Refactor channel allocation code")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/dev.c')
-rw-r--r-- | drivers/gpu/host1x/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c index 9605495f001a..80c685ab3e30 100644 --- a/drivers/gpu/host1x/dev.c +++ b/drivers/gpu/host1x/dev.c @@ -571,6 +571,7 @@ static int host1x_remove(struct platform_device *pdev) host1x_intr_deinit(host); host1x_syncpt_deinit(host); + host1x_channel_list_free(&host->channel_list); host1x_iommu_exit(host); host1x_bo_cache_destroy(&host->cache); |