[PATCH] ir-keytable: null deref if kernel compiled without CONFIG_INPUT_EVDEV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sean Young <sean@xxxxxxxx>
---
 utils/keytable/keytable.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 5572072a..5b2b0af6 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -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"));
-- 
2.11.0




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux