|
@@ -384,7 +384,7 @@ struct uhid_create_req_compat {
|
|
static int uhid_event_from_user(const char __user *buffer, size_t len,
|
|
static int uhid_event_from_user(const char __user *buffer, size_t len,
|
|
struct uhid_event *event)
|
|
struct uhid_event *event)
|
|
{
|
|
{
|
|
- if (is_compat_task()) {
|
|
|
|
|
|
+ if (in_compat_syscall()) {
|
|
u32 type;
|
|
u32 type;
|
|
|
|
|
|
if (get_user(type, buffer))
|
|
if (get_user(type, buffer))
|