Loading
drm/msm: return -EFAULT if copy_from_user() fails
copy_from_user_inatomic() is actually a local function that returns -EFAULT or positive values on error. Otherwise copy_from_user() returns the number of bytes remaining to be copied. We want to return -EFAULT here. I removed an unlikely() because we just did a copy_from_user() so I don't think it can possibly make a difference. Change-Id: Ic0dedbad3437020c12053b6d93276a4dd24a577a Signed-off-by:Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Rob Clark <robdclark@gmail.com> Git-commit: 21c42da18ef128ca8fb4cc4ead888f5c61e3916a Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git [jcrouse@codeaurora.org: fix minor merge conflict and checkpatch errors] Signed-off-by:
Jordan Crouse <jcrouse@codeaurora.org>