From 3909bbc1d6ca12b489787e8b526880e46765ec9a Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Wed, 9 May 2018 12:17:36 -0700 Subject: [PATCH] Revert "ANDROID: input: keychord: Fix for a memory leak in keychord." This reverts commit 29be5c0c2ef587e7958ef16cc8357e8880e92cd9. Remove keychord driver, replaced in user space by https://android-review.googlesource.com/c/677629. Signed-off-by: Mark Salyzyn Bug: 64114943 Bug: 64483974 Bug: 129556081 Change-Id: I4191a02aa70f3c4eb517b9a0ec092380b90130b4 --- drivers/input/misc/keychord.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/keychord.c b/drivers/input/misc/keychord.c index 791f285b0c13..d679360ded56 100644 --- a/drivers/input/misc/keychord.c +++ b/drivers/input/misc/keychord.c @@ -432,7 +432,6 @@ static int keychord_release(struct inode *inode, struct file *file) if (kdev->registered) input_unregister_handler(&kdev->input_handler); - kfree(kdev->keychords); kfree(kdev); return 0; -- 2.20.1