projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4056b5
)
drivers/hid/uhid.c: check write() bitness using in_compat_syscall
author
Andy Lutomirski
<
[email protected]
>
Tue, 22 Mar 2016 21:25:24 +0000
(14:25 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 22 Mar 2016 22:36:02 +0000
(15:36 -0700)
uhid changes the format expected in write() depending on bitness. It
should check the syscall bitness directly.
Signed-off-by: Andy Lutomirski <
[email protected]
>
Cc: David Herrmann <
[email protected]
>
Acked-by: Jiri Kosina <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/hid/uhid.c
patch
|
blob
|
history
diff --git
a/drivers/hid/uhid.c
b/drivers/hid/uhid.c
index e094c572b86e61ff5b4108a29ef78340114d018e..16b6f11a07001c7831a987e6bd891b7d00868f65 100644
(file)
--- a/
drivers/hid/uhid.c
+++ b/
drivers/hid/uhid.c
@@
-384,7
+384,7
@@
struct uhid_create_req_compat {
static int uhid_event_from_user(const char __user *buffer, size_t len,
struct uhid_event *event)
{
- if (i
s_compat_task
()) {
+ if (i
n_compat_syscall
()) {
u32 type;
if (get_user(type, buffer))