drm/xe: Fix overflow in vram manager
authorRiana Tauro <riana.tauro@intel.com>
Thu, 9 Mar 2023 13:18:56 +0000 (18:48 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:29:46 +0000 (18:29 -0500)
commit11823d48abce17d45e7e8c9bd525203f0096c6e8
tree41a192658f2d93e03c01c0ce6b28ef79eb40e6f5
parent6d4f49b7dec3126c6d5491bcea5ae815b025d042
drm/xe: Fix overflow in vram manager

The overflow caused xe_bo_restore_kernel to return an error
Fix overflow in vram manager alloc function.

Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c