]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm: restore open_count if drm_setup fails
authorIlija Hadzic <ilijahadzic@gmail.com>
Mon, 29 Oct 2012 17:35:00 +0000 (17:35 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:47:10 +0000 (16:47 +0000)
commit859f2c0d443558ff604c370cb238182ef2786410
tree27718093a9619b9ad43ed1298ef27ef7f3ee7b86
parente636bd393f3e2aad218933fb879caacb2d112738
drm: restore open_count if drm_setup fails

commit 0f1cb1bd94a9c967cd4ad3de51cfdabe61eb5dcc upstream.

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 <ihadzic@research.bell-labs.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/drm_fops.c