mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 06:49:29 -04:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user