From: Dmitry Torokhov Date: Tue, 3 Nov 2009 05:57:39 +0000 (-0800) Subject: Input: mark custom_data in ff_periodic_effect as __user X-Git-Tag: firefly_0821_release~9833^2~2172^2~150 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e74c2e81fc9e1e674f2747c85fe8cfeaaafa55f6;p=firefly-linux-kernel-4.4.55.git Input: mark custom_data in ff_periodic_effect as __user The custom_data pointer in ff_periodict_effect structure is a userspace pointer and should be marked as such. Signed-off-by: Dmitry Torokhov --- diff --git a/include/linux/input.h b/include/linux/input.h index 0ccfc30cd40f..9ee67b4b2b48 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -890,7 +890,7 @@ struct ff_periodic_effect { struct ff_envelope envelope; __u32 custom_len; - __s16 *custom_data; + __s16 __user *custom_data; }; /**