Skip to contentSkip to conversation

ir-keytable: null deref if kernel compiled without CONFIG_INPUT_EVDEV

PATCH New Sean Young 1 participant 1 message Aug 5, 2017 Media (V4L/DVB)

lore
Share & tools
lore

Sean Young

author
#0 lore raw

PATCH 1/1 ir-keytable: null deref if kernel compiled without CONFIG_INPUT_EVDEV

---
 utils/keytable/keytable.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
utils/keytable/keytable.c +1 -3
index 5572072a..5b2b0af6 100644
@@ -1035,10 +1035,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"));
Signature · 1 line
2.11.0