Input: mark custom_data in ff_periodic_effect as __user
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 3 Nov 2009 05:57:39 +0000 (21:57 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 3 Nov 2009 06:26:09 +0000 (22:26 -0800)
The custom_data pointer in ff_periodict_effect structure is a
userspace pointer and should be marked as such.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/input.h

index 0ccfc30..9ee67b4 100644 (file)
@@ -890,7 +890,7 @@ struct ff_periodic_effect {
        struct ff_envelope envelope;
 
        __u32 custom_len;
-       __s16 *custom_data;
+       __s16 __user *custom_data;
 };
 
 /**