Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Acked-by: Richard Cochran <[email protected]> Signed-off-by: John Stultz <[email protected]>
- Loading branch information