drm: restore open_count if drm_setup fails
authorIlija Hadzic <[email protected]>
Mon, 29 Oct 2012 17:35:00 +0000 (17:35 +0000)
committerDave Airlie <[email protected]>
Wed, 7 Nov 2012 00:51:08 +0000 (10:51 +1000)
commit0f1cb1bd94a9c967cd4ad3de51cfdabe61eb5dcc
tree563f4c28f5049c3bec4ab0c1efaa147098062e46
parent3d70f8c617a436c7146ecb81df2265b4626dfe89
drm: restore open_count if drm_setup fails

If drm_setup (called at first open) fails, the whole
open call has failed, so we should not keep the
open_count incremented.

Signed-off-by: Ilija Hadzic <[email protected]>
Cc: [email protected]
Reviewed-by: Thomas Hellstrom <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
drivers/gpu/drm/drm_fops.c