Skip to content
Commit e23ef227 authored by Dan Carpenter's avatar Dan Carpenter Committed by John Stultz
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarRichard Cochran <richard.cochran@omicron.at>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 1fa7b6a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment