Revert "ANDROID: input: keychord: Fix for a memory leak in keychord."
authorMark Salyzyn <salyzyn@google.com>
Wed, 9 May 2018 19:17:36 +0000 (12:17 -0700)
committerMark Salyzyn <salyzyn@google.com>
Fri, 29 Mar 2019 22:33:04 +0000 (15:33 -0700)
This reverts commit 29be5c0c2ef587e7958ef16cc8357e8880e92cd9.

Remove keychord driver, replaced in user space by
https://android-review.googlesource.com/c/677629.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 64114943
Bug: 64483974
Bug: 129556081
Change-Id: I4191a02aa70f3c4eb517b9a0ec092380b90130b4

drivers/input/misc/keychord.c

index 791f285b0c1397afc4dd05c3290385dcc5ea0492..d679360ded560548b0f3f84f5b60f79a08b08e02 100644 (file)
@@ -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;