xserver/hw
Dave Airlie f7ac913019 randr: cleanup provider properly
So in the cold plug server shutdown case, we reap the resources
before we call CloseScreen handlers, so the config->randr_provider
is a dangling pointer when the xf86CrtcCloseScreen handler is called,

however in the hot screen unplug case, we can't rely on automatically
reaped resources, so we need to clean up the provider in the xf86CrtcCloseScreen
case.

This patch provides a cleanup callback from the randr provider removal
into the DDX so it can cleanup properly, this then gets called by the automatic
code for cold plug, or if hot unplug it gets called explicitly.

Fixes a number of random server crashes on shutdown
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58174
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=891140

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-03-07 21:34:12 -07:00
..
dmx dmx: don't include dmx-config.h from xdmxconfig (#37502) 2013-02-18 12:09:23 +10:00
kdrive Fix up formatting of initializers for arrays of structs 2012-08-06 15:22:53 -07:00
vfb vfb: Initialize the GLX extension again. 2012-12-23 15:22:25 -07:00
xfree86 randr: cleanup provider properly 2013-03-07 21:34:12 -07:00
xnest Replace NO_HW_ONLY_EXTS with Xorg DDX test 2012-07-10 00:31:02 -07:00
xquartz XQuartz: Ensure <dix-config.h> is included in capabilities.c 2013-02-15 23:31:26 -07:00
xwin Fix 'make distcheck' for hw/xwin 2012-10-16 15:14:55 +01:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00