Skip to content

Commit

Permalink
gpu: host1x: Fix a memory leak in 'host1x_remove()'
Browse files Browse the repository at this point in the history
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: 8474b02 ("gpu: host1x: Refactor channel allocation code")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Christophe JAILLET authored and Thierry Reding committed Mar 1, 2022
1 parent e5d5db1 commit 025c664
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/host1x/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 025c664

Please sign in to comment.