[PATCH] dix: fix crash on shutdown if a disabled device is still grabbed (XI1 grab)
Keith Packard
keithp at keithp.com
Tue Oct 9 21:33:03 PDT 2012
Peter Hutterer <peter.hutterer at who-t.net> writes:
> A disabled device doesn't have a sprite (less so a sprite->win) and triggers
> a NULL-pointer dereference on shutdown when all active grabs are released as
> part of the cleanup.
>
> Fix this by checking for sprite being non-null and setting the focus window
> to the NullWindow if it is. The rest of the patch just attempts to make
> things more readable.
Yeah, seems kinda like a kludge to me, but doesn't obviously change any
relevant semantics.
Reviewed-by: Keith Packard <keithp at keithp.com>
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20121009/77092cc7/attachment.pgp>
More information about the xorg-devel
mailing list