From: Dan Carpenter Date: Sun, 29 May 2011 19:53:12 +0000 (+0300) Subject: ptp: Return -EFAULT on copy_to_user() errors X-Git-Tag: v3.0-rc3~3^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e23ef227d10878ff3f323a1dfed10205a1825b71;p=pandora-kernel.git ptp: Return -EFAULT on copy_to_user() errors copy_to_user() returns the number of bytes remaining, but we want a negative error code in ptp_ioctl. Signed-off-by: Dan Carpenter Acked-by: Richard Cochran Signed-off-by: John Stultz --- Reading git-diff-tree failed