Commit af713f6a authored by Keisuke Nishimura's avatar Keisuke Nishimura Committed by Greg Kroah-Hartman
Browse files

drm/vmwgfx: Add error path for xa_store in vmw_bo_add_detached_resource



[ Upstream commit 3282422b ]

The xa_store() may fail due to memory allocation failure because there
is no guarantee that the index is already used. This fix introduces new
paths to handle the error.

This patch also aligns the order of function calls by calling
vmw_bo_add_detached_resource() before ttm_prime_object_init() in order
to allow consistent error handling.

Fixes: d6667f0d ("drm/vmwgfx: Fix handling of dumb buffers")
Signed-off-by: default avatarKeisuke Nishimura <keisuke.nishimura@inria.fr>
Signed-off-by: default avatarZack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250225145223.34773-1-keisuke.nishimura@inria.fr


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent aa02817f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment