mirror of
https://github.com/torvalds/linux.git
synced 2026-05-20 21:08:08 +02:00
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:4cb12b7192("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> (cherry picked from commitc10da95afa) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
This commit is contained in:
parent
190db3b1da
commit
ffd915e41a
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user