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

Commit ce35b7ed authored by Venkateswara Rao Tadikonda's avatar Venkateswara Rao Tadikonda Committed by Gerrit - the friendly Code Review server
Browse files

drm/mm: Fix NULL pointer dereference in allocator



While searching for first hole (get_first_hole) and next free hole
(get_next_hole) from rbtree, rb_first() and rb_next() functions may
return NULL pointer. A NULL pointer check can avoid the NULL pointer
dereference.

Change-Id: I21c918fff3ae995a9d8b2201030401d80ed1fd9e
Signed-off-by: default avatarVenkateswara Rao Tadikonda <vtadik@codeaurora.org>
parent 591d08f7
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