diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-07-22 23:52:31 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-07-23 06:47:22 +0200 |
commit | d5d6ce20be97f6a84365258956d9b1ca162184a3 (patch) | |
tree | e0586ee3509388f836048e01b11c838979a6328a | |
parent | 005337f153a152c7aebb33fbcb28e2e7bc90c8dd (diff) |
drm/i915: be more paranoid with the flink name refcountingprime-locking-fixes
We should _never_ call handle_unref without having a name handle.
Doing so would be a bug, so yell around about if this happens with a
loud WARN_ON.
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 3837e69c2812..d94c6bd7916b 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1677,7 +1677,7 @@ drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj) if (obj == NULL) return; - if (atomic_read(&obj->handle_count) == 0) + if (WARN_ON(atomic_read(&obj->handle_count) == 0)) return; /* |