From: Mika Kuoppala Date: Tue, 12 May 2015 07:35:08 +0000 (+0300) Subject: drm/i915/gtt: Fix the boundary check for vm area X-Git-Tag: omap-for-v4.2/fixes-rc1^2~37^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3e06f1156f1adf17dc44144ad3b774c2d414e47;p=pandora-kernel.git drm/i915/gtt: Fix the boundary check for vm area The check for start + length >= total_vm_size is wrong since start + length can be exactly the size of the vm. Fix the check to allow allocation to boundary. Fixes a regression in commit 4dd738e9cd79 ("drm/i915: Fix 32b overflow check in gen8_ppgtt_alloc_page_directories") Testcase: igt/gem_evict_everything/swapping-interruptible Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90399 Tested-by: Lu Hua Cc: Chris Wilson Cc: Dave Gordon Cc: Ville Syrjälä Cc: Michel Thierry Signed-off-by: Mika Kuoppala Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed