OSDN Git Service

mdss: mdp: Fix fudge factor overflow check
authorAnimesh Kishore <animeshk@codeaurora.org>
Tue, 27 Mar 2018 19:23:31 +0000 (00:53 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 25 Sep 2018 04:30:51 +0000 (21:30 -0700)
commitb7f83f8788c460c2c31c6d8ccc4907b621ead846
treee99d2040a483e3aaad8c0679c030fe31b5c0ca6c
parentaa0ebdfe2d12829d8ee6dde5e841e1c67c9141c2
mdss: mdp: Fix fudge factor overflow check

Fudge adjustment is always 64 bit operation
irrespective of underlying architecture is
32/64 bit. Fix max value to compare overflow
against. Add warning if adjustments can't go
through without overflow.

Change-Id: I9c15ea8c1754c9ddb997546dc476bb6d45198524
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
drivers/video/fbdev/msm/mdss_mdp_ctl.c