commit | a423c53986f79fec03bf02c4ecd9522c39952d68 | [log] [tgz] |
---|---|---|
author | Ilija Hadzic <ilijahadzic@gmail.com> | Mon Oct 29 17:35:00 2012 +0000 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sun Apr 05 10:16:45 2020 +0200 |
tree | e9ad24491132a1afe7c93932f924bd6985ec5645 | |
parent | d81bd876a33428f7957cab1717eb06e48fb19798 [diff] |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>