From: Ville Syrjälä Date: Mon, 21 Oct 2013 16:01:58 +0000 (+0300) Subject: drm/i915: Clamp cursor coordinates to int16_t range X-Git-Tag: v3.13-rc1~76^2~11^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92e76c8c7e436a07af3e0b594480ff8689add078;p=pandora-kernel.git drm/i915: Clamp cursor coordinates to int16_t range We store cursor_x/y as int16_t internally, but the user provided coordinates are int32_t. Clamp the coordinates so that they don't overflow the int16_t. Since the cursor is only 64x64 in size, the clamping can't cause any visual changes. Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed