drm/gem: WARN about unbalanced handle refcounts
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 Aug 2013 22:02:36 +0000 (00:02 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Aug 2013 00:47:37 +0000 (10:47 +1000)
commit1216f732379151cd581444e385a8266d0b54549d
tree4bb20e8000b08255a46f9be345f00099eb6d333d
parent6bc505b86ae9d4ab45464e3e3c0ab8992d6a5aff
drm/gem: WARN about unbalanced handle refcounts

Trying to drop a reference we don't have is a pretty serious bug.
Trying to paper over it is an even worse offense.

So scream into dmesg with a big WARN in case that ever happens.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c