Skip to content
Commit bcf8be27 authored by Maarten Lankhorst's avatar Maarten Lankhorst
Browse files

drm/i915: Widen return value for reservation_object_wait_timeout_rcu to long.



This fixes a spurious warning from an integer overflow on 64-bits systems.
The function may return MAX_SCHEDULE_TIMEOUT which gets truncated to -1.

Explicitly handling this by casting to lret fixes it.
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reported-and-tested-by: default avatarJoseph Yasi <joe.yasi@gmail.com>
Tested-by: default avatarAndreas Reis <andreas.reis@gmail.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Cc: drm-intel-fixes@lists.freedesktop.org
Fixes: 3c28ff22 ("i915: wait for fence in prepare_plane_fb")
Link: http://patchwork.freedesktop.org/patch/msgid/5666EEC8.2000403@linux.intel.com
parent db1a6aa2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment