Skip to content
Snippets Groups Projects
Commit 3282422b authored by Keisuke Nishimura's avatar Keisuke Nishimura Committed by Zack Rusin
Browse files

drm/vmwgfx: Add error path for xa_store in vmw_bo_add_detached_resource


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
parent 0039a3b3
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment