commit | 21c42da18ef128ca8fb4cc4ead888f5c61e3916a | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Jan 16 14:58:08 2017 +0300 |
committer | Rob Clark <robdclark@gmail.com> | Mon Feb 06 11:28:45 2017 -0500 |
tree | 4abe4f6dfc7b39916d80f44b7dc4b78906e2ca9b | |
parent | f079f6d999cbf857f899732de680f2b62f245b8c [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. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Rob Clark <robdclark@gmail.com>