Input: uinput - use memdup_user() and friends
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 11 Feb 2011 09:10:45 +0000 (01:10 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Feb 2011 09:02:28 +0000 (01:02 -0800)
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>

No differences found