commit | 4dfcc271d587465f0d181c7636453ba4d0ec8acc | [log] [tgz] |
---|---|---|
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Fri Feb 11 01:10:45 2011 -0800 |
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Mon Feb 21 01:02:28 2011 -0800 |
tree | b7f6de77ee9d63cc009c3e0011e3d3ca27d9fc16 | |
parent | 5d9d6e91b835796c21fbd7ce479880e5181be112 [diff] |
Input: uinput - use memdup_user() and friends Instead of open-coding copying of data structures from userspace use memdup_user() and strndup_user(). Note that this introduces change in behavior because driver used to truncate 'phys' longer than 1024 bytes, but now it will refuse to set 'phys' that long. Arguably trying to set such 'phys' is suspect anyways. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>