ir-keytable: null deref if kernel compiled without CONFIG_INPUT_EVDEV
PATCH 1/1 ir-keytable: null deref if kernel compiled without CONFIG_INPUT_EVDEV
Signed-off-by Sean Young <[email protected]>
--- utils/keytable/keytable.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
utils/keytable/keytable.c +1 -3
@@ -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