summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_device.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-01-05 15:22:23 +0300
committerMatthew Brost <matthew.brost@intel.com>2024-01-11 05:27:39 +0300
commitc10da95afa68060e13c5f920d96671943a7e54d9 (patch)
tree9906ee116375a07f5d437493aef3a198de3a64f7 /drivers/gpu/drm/xe/xe_device.c
parent7c0f97cb62dcc57463e3c66301330648cbf9b24a (diff)
downloadlinux-c10da95afa68060e13c5f920d96671943a7e54d9.tar.xz
drm/xe/device: clean up on error in probe()
This error path should clean up before returning. Smatch detected this bug: drivers/gpu/drm/xe/xe_device.c:487 xe_device_probe() warn: missing unwind goto? Fixes: 4cb12b71923b ("drm/xe/xe2: Determine bios enablement for flat ccs on igfx") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_device.c')
-rw-r--r--drivers/gpu/drm/xe/xe_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 004e65544e8d..a94c0b27f04e 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -495,7 +495,7 @@ int xe_device_probe(struct xe_device *xe)
err = xe_device_set_has_flat_ccs(xe);
if (err)
- return err;
+ goto err_irq_shutdown;
err = xe_mmio_probe_vram(xe);
if (err)