Skip to content

Commit 109be8b

Browse files
tititiou36thierryreding
authored andcommitted
gpu: host1x: Clean up debugfs in error handling path
host1x_debug_init() must be reverted in an error handling path. This is already fixed in the remove function since commit 44156ee ("gpu: host1x: Clean up debugfs on removal") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent b3a9e3b commit 109be8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/host1x/dev.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,11 +468,12 @@ static int host1x_probe(struct platform_device *pdev)
468468

469469
err = host1x_register(host);
470470
if (err < 0)
471-
goto deinit_intr;
471+
goto deinit_debugfs;
472472

473473
return 0;
474474

475-
deinit_intr:
475+
deinit_debugfs:
476+
host1x_debug_deinit(host);
476477
host1x_intr_deinit(host);
477478
deinit_syncpt:
478479
host1x_syncpt_deinit(host);

0 commit comments

Comments
 (0)