[PATCH] CloseDevice: call XkbRemoveResourceClient before freeing key class struct

Daniel Stone daniel at fooishbar.org
Mon Jan 4 18:04:27 PST 2010


On Mon, Jan 04, 2010 at 11:40:16AM -0800, Alan Coopersmith wrote:
> XkbRemoveResourceClient() returns immediately if dev->key is NULL.
> CloseDevice calls XkbRemoveResourceClient until it removes all resources.
> 
> If we free dev->key and NULL it before XkbRemoveResourceClient, then
> infinite loop ensues, and the server appears to hang on exit or crash.
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at sun.com>

Reviewed-by: Daniel Stone <daniel at fooishbar.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20100105/e559af3d/attachment.pgp 


More information about the xorg-devel mailing list