From: Koby Elbaz Date: Wed, 30 Aug 2023 06:33:32 +0000 (+0300) Subject: drm/xe/display: fix error handling flow when device probing fails X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9914e19cc215d339b618ccae993e16ed7aafb54e;p=linux.git 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 Reviewed-by: Ohad Sharabi Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index 98d7e7fa12d84..1202f8007f795 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);