Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f173ec50 authored by Harsh Sahu's avatar Harsh Sahu Committed by Rajkumar Subbiah
Browse files

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: default avatarHarsh Sahu <hsahu@codeaurora.org>
parent 8d0bafc0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment