From: Vinicius Costa Gomes Date: Sat, 14 Jul 2012 21:59:25 +0000 (-0300) Subject: HID: uhid: Fix sending events with invalid data X-Git-Tag: v3.6-rc1~119^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adefb69b1b94df29ea2df05cd838c0e032b2c473;p=pandora-kernel.git HID: uhid: Fix sending events with invalid data This was detected because events with invalid types were arriving to userspace. The code before this patch would only work for the first event in the queue (when uhid->tail is 0). Signed-off-by: Vinicius Costa Gomes Reviewed-by: David Herrmann Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed