From: Dmitry Torokhov Date: Fri, 11 Feb 2011 09:10:45 +0000 (-0800) Subject: Input: uinput - use memdup_user() and friends X-Git-Tag: v2.6.39-rc1~410^2^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dfcc271d587465f0d181c7636453ba4d0ec8acc;p=pandora-kernel.git 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 --- Reading git-diff-tree failed