[PATCH 2/3] drm/xe: Fix potential integer overflow in page size calculation

Matthew Auld matthew.auld at intel.com
Thu Mar 14 10:24:50 UTC 2024


On 14/03/2024 09:54, Nirmoy Das wrote:
> Explicitly cast tbo->page_alignment to u64 before bit-shifting to
> prevent overflow when assigning to min_page_size.
> 
> Cc: Matthew Auld <matthew.auld at intel.com>
> Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-xe mailing list