]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:06:12 +0000 (14:06 +0200)
commit5124a344983e1b9670dae7add0e4d00d589aabcd
treec3869868cec0a22e9ee74dc5836a9fb36915f037
parentfeb3cf936cbf17972adc1c80932a3860932047a1
gpu: host1x: Fix a memory leak in 'host1x_remove()'

[ Upstream commit 025c6643a81564f066d8381b9e2f4603e0f8438f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/host1x/dev.c