xserver/hw/xfree86/modes
Dave Airlie 8f4640bdb9 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-01 18:14:28 +10:00
..
Makefile.am displayid: Implement mode decoding. 2009-07-17 14:48:55 -04:00
xf86Crtc.c randr: cleanup provider properly 2013-03-01 18:14:28 +10:00
xf86Crtc.h xf86: store scanout pixmap in the xf86 struct as well. 2012-07-07 10:37:45 +01:00
xf86Cursors.c xf86: migrate to using xf86ScreenToScrn wrapper (v2) 2012-05-21 12:59:08 +01:00
xf86DiDGA.c xf86dga: handle DGAAvailable for gpu screens. (v2) 2012-07-07 10:37:10 +01:00
xf86DisplayIDModes.c Fix up formatting of initializers for arrays of structs 2012-08-06 15:22:53 -07:00
xf86EdidModes.c Fix up formatting of initializers for arrays of structs 2012-08-06 15:22:53 -07:00
xf86Modes.c xfree86: Strip dangling pointers from desiredMode 2012-07-11 15:55:22 -07:00
xf86Modes.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86RandR12.c randr: cleanup provider properly 2013-03-01 18:14:28 +10:00
xf86RandR12.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Rename.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Rotate.c xf86: make sure rotate calcs are done on the right screen boundaries 2012-07-07 10:37:45 +01:00
xf86cvt.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86gtf.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00