Skip to content
Commit 68103b27 authored by Keith Packard's avatar Keith Packard
Browse files

libdrm/intel: assert that clients are using bo refcounting correctly



Add assertions to drm_intel_gem_bo_reference,
drm_intel_gem_bo_reference_locked and drm_intel_gem_bo_unreference_locked
that the object has not been freed (refcount > 0). Mistakes in refcounting
lead to attempts to insert a bo into a free list more than once which causes
application failure as empty free lists are dereferenced as buffer objects.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 11b60973
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment