]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb766d00595e5ac2652faca3a6289dfcc526a5da9
tree58d06ba7fb375232ec614bc78db39faceb7898c6
parentabd5b8ec5c20235ce0e8867698184a798d0da796
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