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

Skip to content
Commit 50b68fed authored by Shrenuj Bansal's avatar Shrenuj Bansal
Browse files

msm: kgsl: Use temp unsigned long variable to prevent truncation



Casting the output of adreno_wait_event_interruptible_timeout() to
int can cause problems on 64bit since msecs_to_jiffies() returns an
unsigned long. This results in ret having negative values which are
not appropriately handled. Instead, use a temp variable to get the
returned value and translate that into a return value.

Change-Id: I5d1d2b40b4b832bdb018560630ab77dce98ea866
Signed-off-by: default avatarShrenuj Bansal <shrenujb@codeaurora.org>
parent 500bff85
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