]> git.itanic.dy.fi Git - linux-stable/commit
drm/xe: Initialize ret in mcr_lock()
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 16 Feb 2023 14:16:44 +0000 (06:16 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:28:24 +0000 (18:28 -0500)
commitdc97898e8121878829ee3cf48fa8ce154807f90b
tree35f8373362e11964afee19a3627133940b1af1b2
parent844c0700a675a5e30644c867ae7b30cb680d176d
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>
drivers/gpu/drm/xe/xe_gt_mcr.c