drm/radeon/pm: Handle failure of drm_vblank_get.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Fri, 12 Feb 2016 19:30:31 +0000 (20:30 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Feb 2016 04:19:03 +0000 (14:19 +1000)
commite0b34e3857004ac2257458d6354c31349f51e207
treeaa49831290079332716f16ab7375293b9ca7b422
parentbb74fc1bf3072bd3ab4ed5f43afd287a63baf2d7
drm/radeon/pm: Handle failure of drm_vblank_get.

Make sure that drm_vblank_get/put() stay balanced in
case drm_vblank_get fails, by skipping the corresponding
put.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: michel@daenzer.net
Cc: dri-devel@lists.freedesktop.org
Cc: alexander.deucher@amd.com
Cc: christian.koenig@amd.com
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_pm.c