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

Commit da176acc authored by Jordan Crouse's avatar Jordan Crouse Committed by Jeremy Gebben
Browse files

msm: kgsl: Don't WARN in _kgsl_context_get



There is a sizable window between the reference count on a context
going to zero and it actually getting removed from the idr. In the
meantime somebody else could try to get the context and fail
kref_get_unless zero(). Thats okay - it just means that you can't
trust the pointer.  This mostly comes into play with kgsl_release()
which races with all the other things that hold a context reference.

Remove the WARN and trust that all callers of _kgl_context_get()
do the right thing (as of today, they do).

Change-Id: Ic0dedbadbd9f257042da9ea7e18e7ba4f27c1a0a
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent f2a01c49
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