gpu: host1x: Fix a memory leak in 'host1x_remove()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Nov 2021 21:16:36 +0000 (22:16 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 25 Feb 2022 13:54:09 +0000 (14:54 +0100)
commit0bb9320fc457c9e8cb4d4b55d8a3057cb9af87d4
treea9b42e8f22d1d77715b9ddec2582d542f76d47d2
parentd65e338027e75e11e1b951178cb113b1bbeccca5
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>
drivers/gpu/host1x/dev.c