Re: [PATCH 1/2] gpu: host1x: Fix an error handling path in 'host1x_probe()'
From: Thierry Reding
Date: Fri Feb 25 2022 - 08:50:44 EST
On Sun, Nov 07, 2021 at 10:16:25PM +0100, Christophe JAILLET wrote:
> 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: e3166698a8a0 ("drm/tegra: Implement buffer object cache")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---
> Untested.
> I hope that moving host1x_bo_cache_init() is just fine.
> ---
> drivers/gpu/host1x/dev.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
Applied, thanks.
Thierry
Attachment:
signature.asc
Description: PGP signature