[PATCH] Initialize the fd to -1 for xorg.conf input devices.

Daniel Stone daniel at fooishbar.org
Mon Jul 25 01:08:48 PDT 2011


On Wed, Jul 20, 2011 at 09:00:18AM +1000, Peter Hutterer wrote:
> For hotplugged devices, xf86AllocateInput does that for us but the xorg.conf
> path is different. Since not all drivers reset the fd during PreInit but may
> still call close(pInfo->fd) in all cases, this can terminate the logging
> early.
> 
> Reproducible: add a wacom driver InputDevice section with no Option Device.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

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

Cheers,
Daniel


More information about the xorg-devel mailing list