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

Commit 42c31216 authored by Rajesh Kemisetti's avatar Rajesh Kemisetti
Browse files

msm: kgsl: BUG_ON only if address is not an error



_gpu_find_svm() makes a BUG_ON if the returned address is
greater than ULONG_MAX.

But in 32bit kernel, Error conditions would also make the
comparison to be true. Because it compares address or
error in unit64_t with ULONG_MAX which is in 32bit.

Check whether returned address is an error before making the BUG_ON.

Change-Id: I482b330db3e06a1bee31dd6931faf239a61f9ab8
Signed-off-by: default avatarRajesh Kemisetti <rajeshk@codeaurora.org>
parent 05352690
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