From: Michel Thierry Date: Thu, 30 Apr 2015 15:06:51 +0000 (+0100) Subject: drm/i915: Fix 32b overflow check in gen8_ppgtt_alloc_page_directories X-Git-Tag: omap-for-v4.2/fixes-rc1^2~17^2~54^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dd738e9cd791ebac2a009f09f1761e85e7f0805;p=pandora-kernel.git drm/i915: Fix 32b overflow check in gen8_ppgtt_alloc_page_directories The patch 69876bed7e008f5fe01538a2d47c09f2862129d0: "drm/i915/gen8: page directories rework allocation" added an overflow warning, but the mask had an extra 0. Use less typo-prone option suggested by Dave instead, to check for (start + length) >= 0x100000000ULL. This check will be unnecessary after gen8_alloc_va_range handles more than 4 PDPs (48b addressing). v2: Really check for 32b overflow (Ville) Reported-by: Dan Carpenter Cc: Dave Gordon Cc: Ville Syrjälä Signed-off-by: Michel Thierry Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed