drm: fix leak of device mappings since multi-master changes.
authorDave Airlie <airlied@redhat.com>
Mon, 19 Jan 2009 07:17:58 +0000 (17:17 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Jan 2009 07:17:58 +0000 (17:17 +1000)
commitc1ff85d97708550e634fb6fa099c463db90fc40d
tree58d06ba7fb375232ec614bc78db39faceb7898c6
parent1de9e8e70f5acc441550ca75433563d91b269bbe
drm: fix leak of device mappings since multi-master changes.

Device maps now contain a link to the master that created them, so
when cleaning up the master, remove any maps that are connected to it.
Also delete any remaining maps at driver unload time.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_stub.c