diff options
author | Keith Packard <keithp@keithp.com> | 2009-05-01 18:47:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-05-01 18:49:59 -0700 |
commit | 68103b2758029b3c1fbfcf995baa758bfd2676de (patch) | |
tree | 8413d5292d583a70983a5efd50a7a2943e64827e /linux-core/nouveau_backlight.c | |
parent | 11b60973bca1bc9bbda44be4c695e22d28d8ca4a (diff) |
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: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'linux-core/nouveau_backlight.c')
0 files changed, 0 insertions, 0 deletions