diff options
author | Koby Elbaz <kelbaz@habana.ai> | 2023-08-30 09:33:32 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:44:30 -0500 |
commit | 9914e19cc215d339b618ccae993e16ed7aafb54e (patch) | |
tree | f79c0417be9825f45d18d949392ff713fc222a5b /drivers/gpu/drm | |
parent | f02d48b881e2c0138f570884f8ead14d3f86ba21 (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 <kelbaz@habana.ai>
Reviewed-by: Ohad Sharabi <osharabi@habana.ai>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/xe/xe_device.c | 4 |
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); |