aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2017-08-05 06:00:43 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 09:27:01 -0400
commite025baf98e67ce5139fbb745ca7a6e91b7ce8ca5 (patch)
treebf22a669c185feb991c244bf7e82f995ea03216a
parentd9a830f7b9c76979916f909a807dd1a636b817e3 (diff)
ir-keytable: null deref if kernel compiled without CONFIG_INPUT_EVDEV
Signed-off-by: Sean Young <sean@mess.org>
-rw-r--r--utils/keytable/keytable.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index d9e521b7..be569d4d 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -1037,10 +1037,8 @@ static int get_attribs(struct rc_device *rc_dev, char *sysfs_name)
event_names = seek_sysfs_dir(input_names->name, event);
free_names(input_names);
- if (!event_names) {
- free_names(event_names);
+ if (!event_names)
return EINVAL;
- }
if (event_names->next->next) {
free_names(event_names);
fprintf(stderr, _("Found more than one event interface. This is currently unsupported\n"));

Privacy Policy