drm/modes: Switch to 64bit maths to avoid integer overflow
The new >8k CEA modes have dotclocks reaching 5.94 GHz, which means our clock*1000 will now overflow the 32bit unsigned integer. Switch to 64bit maths to avoid it. Cc: stable@vger.kernel.org Reported-by: NRandy Dunlap <rdunlap@infradead.org> Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201022194256.30978-1-ville.syrjala@linux.intel.comTested-by: NRandy Dunlap <rdunlap@infradead.org> Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
Showing
想要评论请 注册 或 登录