Просмотр исходного кода

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 <dtor@mail.ru>
Dmitry Torokhov 15 лет назад
Родитель
Сommit
e74c2e81fc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/linux/input.h

+ 1 - 1
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;
 };
 
 /**