Don't allow a negative fd in libevdev_set_fd
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 8 Oct 2013 05:27:27 +0000 (15:27 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 14 Oct 2013 04:20:55 +0000 (14:20 +1000)
commit0dbf1ea4f81eb1078d77e3bef177ee581bb697c1
tree7ee7e9ed1370c79a320e61be30ec51d3481b9d1f
parente8920d2fd47d285b4e8b404d37542e67be7b4cec
Don't allow a negative fd in libevdev_set_fd

Everything else responds with -EBADF, let's do so here as well.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/libevdev.c