mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/xe/tlb: Init range tilemask err to zero
Initialize err = 0 in xe_tlb_inval_range_tilemask_submit to prevent a possible uninitialized value return in the case where the tile_mask somehow doesn't match any available tile ids. This targets a static analysis issue. Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Link: https://patch.msgid.link/20260316162003.64643-2-jonathan.cavitt@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
This commit is contained in:
parent
764c0e2abf
commit
2b923203b0
|
|
@ -529,7 +529,7 @@ int xe_tlb_inval_range_tilemask_submit(struct xe_device *xe, u32 asid,
|
|||
struct xe_tile *tile;
|
||||
u32 fence_id = 0;
|
||||
u8 id;
|
||||
int err;
|
||||
int err = 0;
|
||||
|
||||
batch->num_fences = 0;
|
||||
if (!tile_mask)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user