drm: Cleanup after failing to create master->unique and dev->name
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Aug 2010 10:09:42 +0000 (11:09 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Aug 2010 22:42:19 +0000 (08:42 +1000)
commit3fb688fdc1890f9e8e97597f690c145ab888aec0
tree51d00db10f866092486ccde2ec20ac794c8f2651
parentdc77de12dde95c8da39e4c417eb70c7d445cf84b
drm: Cleanup after failing to create master->unique and dev->name

v2: Userspace (notably xf86-video-{intel,ati}) became confused when
drmSetInterfaceVersion() started returning -EBUSY as they used a second
call (the first done in drmOpen()) to check their master credentials.
Since userspace wants to be able to repeatedly call
drmSetInterfaceVersion() allow them to do so.

v3: Rebase to drm-core-next.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_ioctl.c