• Dmitry Torokhov's avatar
    Input: uinput - use memdup_user() and friends · 4dfcc271
    Dmitry Torokhov authored
    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: default avatarDmitry Torokhov <dtor@mail.ru>
    4dfcc271
uinput.c 19.2 KB