]> 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)
commit1c9560d72ceabf066a60622b7ac889d87f98f705
tree61c7a7e0a48a1a4434387575d0833eb8f9f19fc6
parentad4c1d02fd6defc86ffeb63682a2d19cf8016c96
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: cd548235546a ("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