Commit ffd915e4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Thomas Hellström

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: 4cb12b71 ("drm/xe/xe2: Determine bios enablement for flat ccs on igfx")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
(cherry picked from commit c10da95a)
Signed-off-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
parent 190db3b1
...@@ -484,7 +484,7 @@ int xe_device_probe(struct xe_device *xe) ...@@ -484,7 +484,7 @@ int xe_device_probe(struct xe_device *xe)
err = xe_device_set_has_flat_ccs(xe); err = xe_device_set_has_flat_ccs(xe);
if (err) if (err)
return err; goto err_irq_shutdown;
err = xe_mmio_probe_vram(xe); err = xe_mmio_probe_vram(xe);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment