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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -484,7 +484,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)