summaryrefslogtreecommitdiff
path: root/drivers/input/misc/ad714x-i2c.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2011-02-11 12:10:45 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-02-21 12:02:28 +0300
commit4dfcc271d587465f0d181c7636453ba4d0ec8acc (patch)
treeb7f6de77ee9d63cc009c3e0011e3d3ca27d9fc16 /drivers/input/misc/ad714x-i2c.c
parent5d9d6e91b835796c21fbd7ce479880e5181be112 (diff)
downloadlinux-4dfcc271d587465f0d181c7636453ba4d0ec8acc.tar.xz
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>
Diffstat (limited to 'drivers/input/misc/ad714x-i2c.c')
0 files changed, 0 insertions, 0 deletions