[Intel-xe] [PATCH] drm/xe: fix error handling flow when device probing fails
Koby Elbaz
kelbaz at habana.ai
Wed Aug 30 06:33:32 UTC 2023
Upon device probe failure, rolling back the initialization
should be done in reversed order.
Signed-off-by: Koby Elbaz <kelbaz at habana.ai>
Reviewed-by: Ohad Sharabi <osharabi at habana.ai>
---
drivers/gpu/drm/xe/xe_device.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 766df07de979..109aeb25d19c 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -325,11 +325,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);
--
2.34.1
More information about the Intel-xe
mailing list