msm: mdss: avoid overflow in mdp clock rate calculation for rotator
The width and height in calculation of the clk_rate comes from user.
This change checks these values against its maximum value allowed. In
case of overflow it returns immediately with invalid argument.
Change-Id: Idbf7cf0c425769ab7b672b781aa791bbfd77916d
Signed-off-by:
Harsh Sahu <hsahu@codeaurora.org>
Loading
Please register or sign in to comment