]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/uc: Fix missing unwind goto
authorZhanjun Dong <zhanjun.dong@intel.com>
Mon, 21 Jul 2025 21:45:20 +0000 (17:45 -0400)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 28 Jul 2025 14:22:28 +0000 (10:22 -0400)
Fix missing unwind goto on error handling.

Fixes: b2c4ac219fa4 ("drm/xe/uc: Disable GuC communication on hardware initialization error")
Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://lore.kernel.org/r/20250721214520.954014-1-zhanjun.dong@intel.com
(cherry picked from commit 176f44a5ec0b074aaf44852db77d0c183c36696d)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_uc.c

index 3e0c3af235f276f345237cd09b50b5fc2387edbe..465bda3554439a472b59f5565d31ec87d30ec7a9 100644 (file)
@@ -164,7 +164,7 @@ static int vf_uc_load_hw(struct xe_uc *uc)
 
        err = xe_guc_opt_in_features_enable(&uc->guc);
        if (err)
-               return err;
+               goto err_out;
 
        err = xe_gt_record_default_lrcs(uc_to_gt(uc));
        if (err)