]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Fix an error handling path in 'host1x_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Nov 2021 21:16:25 +0000 (22:16 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 1 Mar 2022 10:13:03 +0000 (11:13 +0100)
commit9288e9a109e35597d411ad8130645daeb72697c4
tree61c7a7e0a48a1a4434387575d0833eb8f9f19fc6
parente37d8e35ae77eac0cd3fba1ac7dce029a93f22a4
gpu: host1x: Fix an error handling path in 'host1x_probe()'

Add the missing 'host1x_bo_cache_destroy()' call in the error handling
path of the probe, as already done in the remove function.

In order to simplify the error handling, move the 'host1x_bo_cache_init()'
call after all the devm_ function.

Fixes: 278f464eaa68 ("drm/tegra: Implement buffer object cache")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/dev.c