Skip to content

Commit

Permalink
Input: mark custom_data in ff_periodic_effect as __user
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov committed Nov 3, 2009
1 parent a5f523b commit e74c2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ struct ff_periodic_effect {
struct ff_envelope envelope;

__u32 custom_len;
__s16 *custom_data;
__s16 __user *custom_data;
};

/**
Expand Down

0 comments on commit e74c2e8

Please sign in to comment.