aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-01-16 11:58:08 +0000
committerRob Clark <[email protected]>2017-02-06 16:28:45 +0000
commit21c42da18ef128ca8fb4cc4ead888f5c61e3916a (patch)
tree4abe4f6dfc7b39916d80f44b7dc4b78906e2ca9b /drivers/gpu/drm/amd/amdgpu/atom.c
parentdrm/msm/dsi: Add PHY/PLL for 8x96 (diff)
downloadkernel-21c42da18ef128ca8fb4cc4ead888f5c61e3916a.tar.gz
kernel-21c42da18ef128ca8fb4cc4ead888f5c61e3916a.zip
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. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions