projects
/
platform
/
upstream
/
libevdev.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d2a73
)
uinput: don't try to set the syspath twice
author
Peter Hutterer
<peter.hutterer@who-t.net>
Sat, 31 Aug 2013 02:59:27 +0000
(12:59 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Sat, 31 Aug 2013 03:17:58 +0000
(13:17 +1000)
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
patch
|
blob
|
history
diff --git
a/libevdev/libevdev-uinput.c
b/libevdev/libevdev-uinput.c
index de2833e54dc4c222fa9d5e5e5be187faeebae699..88ec313c751c4f0d5a0de5a0be40bb88718febcf 100644
(file)
--- a/
libevdev/libevdev-uinput.c
+++ b/
libevdev/libevdev-uinput.c
@@
-230,6
+230,7
@@
fetch_syspath_and_devnode(struct libevdev_uinput *uinput_dev)
strcat(buf, namelist[i]->d_name);
uinput_dev->syspath = strdup(buf);
uinput_dev->devnode = fetch_device_node(buf);
+ break;
}
}