]> git.dujemihanovic.xyz Git - linux.git/commit
drm/xe/guc: Check error code when initializing the CT mutex
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 21 Mar 2024 19:55:12 +0000 (12:55 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 22 Mar 2024 17:22:20 +0000 (10:22 -0700)
commitb4abeb5545bb3ddcdda3c19067680ad0b2259be4
tree35d1102e8b8d01ee5abaaf2f378eec0f7fdfb7ca
parentc04b8aaeb4b23156a1ac7c14c28fd0b64687b290
drm/xe/guc: Check error code when initializing the CT mutex

The initialization via drmm_mutex_init can fail, so we need to check the
return code and escalate the failure.

The mutex initialization has been moved after all the other init steps
that can't fail, so we're always guaranteed to have those done and don't
have to check in the cleanup code.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240321195512.274210-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/xe_guc_ct.c