[PATCH evdev] Return error codes from EvdevOpenDevice()

Daniel Stone daniel at fooishbar.org
Mon Dec 6 07:23:42 PST 2010


On Mon, Dec 06, 2010 at 03:01:11PM +1000, Peter Hutterer wrote:
> The server's behaviour is to stop adding new devices when a BadAlloc occurs
> on any device (on the assumption that new devices won't magically have more
> memory). Change EvdevOpenDevice() to return an error code of BadValue when
> it fails (and thus to the server) to prevent other devices being ignored
> because of one misconfigured one.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

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


More information about the xorg-devel mailing list