[PATCH v1] drm/xe/uc: Fix missing unwind goto

Matthew Brost matthew.brost at intel.com
Tue Jul 22 06:44:35 UTC 2025


On Mon, Jul 21, 2025 at 05:45:20PM -0400, Zhanjun Dong wrote:
> 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 at intel.com>

Reviewed-by: Matthew Brost <matthew.brost at intel.com>

> ---
>  drivers/gpu/drm/xe/xe_uc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
> index 3e0c3af235f2..465bda355443 100644
> --- a/drivers/gpu/drm/xe/xe_uc.c
> +++ b/drivers/gpu/drm/xe/xe_uc.c
> @@ -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)
> -- 
> 2.34.1
> 


More information about the Intel-xe mailing list