aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoby Elbaz <[email protected]>2023-08-30 09:33:32 +0300
committerRodrigo Vivi <[email protected]>2023-12-21 11:44:30 -0500
commit9914e19cc215d339b618ccae993e16ed7aafb54e (patch)
treef79c0417be9825f45d18d949392ff713fc222a5b
parentf02d48b881e2c0138f570884f8ead14d3f86ba21 (diff)
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 <[email protected]> Reviewed-by: Ohad Sharabi <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r--drivers/gpu/drm/xe/xe_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 98d7e7fa12d8..1202f8007f79 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -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);