summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sprd
diff options
context:
space:
mode:
authorKeisuke Nishimura <keisuke.nishimura@inria.fr>2025-02-25 15:52:23 +0100
committerZack Rusin <zack.rusin@broadcom.com>2025-03-10 14:31:43 -0400
commit3282422bf251db541fe07c548ca304130d37d754 (patch)
treed19d6030c4359b6327bb415507dd3e14c6531944 /drivers/gpu/drm/sprd
parent0039a3b35b10d9c15d3d26320532ab56cc566750 (diff)
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: d6667f0ddf46 ("drm/vmwgfx: Fix handling of dumb buffers") Signed-off-by: Keisuke Nishimura <keisuke.nishimura@inria.fr> Signed-off-by: Zack Rusin <zack.rusin@broadcom.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250225145223.34773-1-keisuke.nishimura@inria.fr
Diffstat (limited to 'drivers/gpu/drm/sprd')
0 files changed, 0 insertions, 0 deletions