[PATCH] i915: cast before shifting in i915_pte_count

2016-02-17 Thread Daniel Vetter
On Wed, Feb 17, 2016 at 02:20:46PM +, Alan wrote: > Otherwise a pde_shift big enough to overflow a u32 will be truncated before > assignment > > Signed-off-by: Alan Cox Applied to drm-intel-next-queued, with a note why we never hit this bug currently. But the units here are quite confused ..

[PATCH] i915: cast before shifting in i915_pte_count

2016-02-17 Thread Alan
Otherwise a pde_shift big enough to overflow a u32 will be truncated before assignment Signed-off-by: Alan Cox --- drivers/gpu/drm/i915/i915_gem_gtt.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h