drm/xe: Add a NULL check in xe_ttm_stolen_mgr_init
authorNirmoy Das <nirmoy.das@intel.com>
Tue, 19 Mar 2024 13:09:25 +0000 (14:09 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 20 Mar 2024 08:58:01 +0000 (08:58 +0000)
commita6eff8f9c7e844cb24ccb188ca24abcd59734e74
tree2501f62309ba0bd9e1a073bfe78502357549be8e
parentc9cc3d6586e6f161383ff41b9d6b8c83898d74aa
drm/xe: Add a NULL check in xe_ttm_stolen_mgr_init

Add an explicit check to ensure that the mgr is not NULL.

Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240319130925.22399-1-nirmoy.das@intel.com
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c