OSDN Git Service

gpu: host1x: Clean up debugfs in error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Apr 2020 19:16:30 +0000 (21:16 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 16 Jun 2020 11:46:17 +0000 (13:46 +0200)
host1x_debug_init() must be reverted in an error handling path.

This is already fixed in the remove function since commit 44156eee91ba
("gpu: host1x: Clean up debugfs on removal")

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/dev.c

index d24344e..3c0f151 100644 (file)
@@ -468,11 +468,12 @@ static int host1x_probe(struct platform_device *pdev)
 
        err = host1x_register(host);
        if (err < 0)
-               goto deinit_intr;
+               goto deinit_debugfs;
 
        return 0;
 
-deinit_intr:
+deinit_debugfs:
+       host1x_debug_deinit(host);
        host1x_intr_deinit(host);
 deinit_syncpt:
        host1x_syncpt_deinit(host);