Commit 9914e19c authored by Koby Elbaz's avatar Koby Elbaz Committed by Rodrigo Vivi

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: default avatarKoby Elbaz <kelbaz@habana.ai>
Reviewed-by: default avatarOhad Sharabi <osharabi@habana.ai>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent f02d48b8
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment