Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b006044a authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

Revert "ANDROID: keychord: Check for write data size"

This reverts commit f6738522.

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

.

Signed-off-by: default avatarMark Salyzyn <salyzyn@google.com>
Bug: 64114943
Bug: 73962978
Bug: 129556081
Change-Id: Icaba57e6759f246fb75e28e5f6a84411eddaf953
parent 1a225ad8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ static ssize_t keychord_write(struct file *file, const char __user *buffer,
	size_t resid = count;
	size_t key_bytes;

	if (count < sizeof(struct input_keychord) || count > PAGE_SIZE)
	if (count < sizeof(struct input_keychord))
		return -EINVAL;
	keychords = kzalloc(count, GFP_KERNEL);
	if (!keychords)