diff options
author | José Roberto de Souza <jose.souza@intel.com> | 2023-02-16 06:16:44 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-19 18:28:24 -0500 |
commit | dc97898e8121878829ee3cf48fa8ce154807f90b (patch) | |
tree | 35f8373362e11964afee19a3627133940b1af1b2 /drivers | |
parent | 844c0700a675a5e30644c867ae7b30cb680d176d (diff) |
drm/xe: Initialize ret in mcr_lock()
ret is not initialized in mcr_lock() when running in platforms with
graphics IP version < 1270, this could cause drm_WARN_ON_ONCE()
to hit eventually(what just happened to me).
Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/xe/xe_gt_mcr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_mcr.c b/drivers/gpu/drm/xe/xe_gt_mcr.c index bb71071c3435..7617f0340879 100644 --- a/drivers/gpu/drm/xe/xe_gt_mcr.c +++ b/drivers/gpu/drm/xe/xe_gt_mcr.c @@ -383,7 +383,7 @@ static bool xe_gt_mcr_get_nonterminated_steering(struct xe_gt *gt, static void mcr_lock(struct xe_gt *gt) { struct xe_device *xe = gt_to_xe(gt); - int ret; + int ret = 0; spin_lock(>->mcr_lock); |