drm/xe/display: fix error handling flow when device probing fails

Upon device probe failure, rolling back the initialization
should be done in reversed order.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Ohad Sharabi <osharabi@habana.ai>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
Koby Elbaz
2023-08-30 09:33:32 +03:00
committed by Rodrigo Vivi
parent f02d48b881
commit 9914e19cc2

View File

@@ -427,11 +427,11 @@ int xe_device_probe(struct xe_device *xe)
err = xe_display_init(xe);
if (err)
goto err_fini_display;
goto err_irq_shutdown;
err = drm_dev_register(&xe->drm, 0);
if (err)
goto err_irq_shutdown;
goto err_fini_display;
xe_display_register(xe);