drm/i915: Fix buffer overflow in dsi_calc_mnp()
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 2 Jul 2016 14:36:04 +0000 (15:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 2 Jul 2016 18:20:06 +0000 (19:20 +0100)
commit1bbea16a736a1cbf9c1917b472c2b427d4c2a185
treefed9b18232c832c26de14c38415f29ed524f1256
parentebe69dd366dcb6514be78cfdb8e89d9cc2ebb361
drm/i915: Fix buffer overflow in dsi_calc_mnp()

smatch complain:

drivers/gpu/drm/i915/intel_dsi_pll.c:101 dsi_calc_mnp() error: buffer
overflow 'lfsr_converts' 39 <= 4294967234

and looks justified in doing so.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1467470166-31717-7-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/intel_dsi_pll.c