[Intel-xe] [PATCH 0/1] drm/xe: timeout needs to be a signed value

fei.yang at intel.com fei.yang at intel.com
Tue Sep 26 04:12:58 UTC 2023


From: Fei Yang <fei.yang at intel.com>

In xe_wait_user_fence_ioctl, the timeout is currently defined as
unsigned long. That could potentially pass a negative value to
the schedule_timeout() call because nsecs_to_jiffies() returns an
unsigned long which gets used as signed long.

Signed-off-by: Fei Yang <fei.yang at intel.com>
Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

Fei Yang (1):
  drm/xe: timeout needs to be a signed value

 drivers/gpu/drm/xe/xe_wait_user_fence.c | 55 +++++++++++++++++--------
 1 file changed, 37 insertions(+), 18 deletions(-)

-- 
2.25.1



More information about the Intel-xe mailing list