[PATCH] dix: avoid calling deleted block and wakeup handlers

Daniel Stone daniel at fooishbar.org
Tue Jun 14 16:58:55 PDT 2011


On Tue, Jun 14, 2011 at 04:36:07PM -0700, Scott James Remnant wrote:
> BlockHandler and WakeupHandlers may be removed within a different
> BlockHandler or WakeupHandler, especially since config/udev uses
> these and removes devices.
> 
> Calling the deleted handlers and passing potentially freed data
> can result in the X server segfaulting after device removal, or
> events that result in device removal such as undocking or suspend/
> resume.
> 
> Signed-off-by: Scott James Remnant <scott at netsplit.com>

Reviewed-by: Daniel Stone <daniel at fooishbar.org>

I've pulled this into my tree (which currently contains the two grab
debug patches sent to the list, as well as the DRI2
pScreen->ConfigNotify wrapping fix), ta.

Cheers,
Daniel


More information about the xorg-devel mailing list