diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-03-16 16:59:38 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-03-24 15:21:54 +0100 |
commit | 8f507c8b0fa5d679e2957aad0e5ecd47675fca9a (patch) | |
tree | 427024c2176d6a4ab06b5178e1874dc24b0c6b74 /Documentation/frv | |
parent | d66435cc7da95964cb386674bd82ec12ca66320a (diff) |
HID: hidraw: switch to using memdup_user
Instead of open-coding memory allocation and copying form user memory
sequence let's use memdup_user().
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation/frv')