]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mm: Fix caching of leftmost node in the interval tree
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Feb 2018 09:37:38 +0000 (09:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Feb 2018 16:38:26 +0000 (16:38 +0000)
commit0e19c120e809a7cd94e116aa5618c290b2c888b5
tree3bcb40dfae01801230ef2b3f7756b58d7ce3cc86
parent0ec978834d02d067fb6d1687b4ba5ae5c76c12f3
drm/mm: Fix caching of leftmost node in the interval tree

When we descend the tree to find our slot, if we step to the right, we
are no longer the leftmost node.

Fixes: b3d0bc7da597 ("lib/interval_tree: fast overlap detection")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Davidlohr Bueso <dbueso@suse.de>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Christian König <christian.koenig@amd.com> for now.
Link: https://patchwork.freedesktop.org/patch/msgid/20180220093738.1461-1-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c