summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-04-07 15:01:38 -0600
committerJordan Crouse <jcrouse@codeaurora.org>2017-04-26 12:07:57 -0600
commitb54b359084bedc367979143ce24d13135139a60d (patch)
tree8f36174e7536ec310b7b79fc2d320f232bf7d53e /net/unix/af_unix.c
parent095e8c48851426fcd472096ce7f392647133ce8b (diff)
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions