uinput: don't try to set the syspath twice
authorPeter Hutterer <peter.hutterer@who-t.net>
Sat, 31 Aug 2013 02:59:27 +0000 (12:59 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sat, 31 Aug 2013 03:17:58 +0000 (13:17 +1000)
commit37d37cdaea9c010c5f7f0ab878617c8239d14d15
tree2d2cd681386f3ccd6864c9417dd7eba97dbc3aa3
parent22d2a735c473dfa260ffc6bcbb16a5115b8ed719
uinput: don't try to set the syspath twice

If we have it, stop searching for it. Otherwise a second device with the
same name would overwrite the first, causing a leak.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
libevdev/libevdev-uinput.c