diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-06-18 15:18:43 +0200 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2019-06-18 19:08:48 +0200 |
commit | 74b67efa8d7b4f90137f0ab9a80dd319da050350 (patch) | |
tree | 9c31e46a940090bf50414deef0f19444f28630a2 /block/blk-mq-rdma.c | |
parent | drm/panfrost: Make sure a BO is only unmapped when appropriate (diff) | |
download | linux-74b67efa8d7b4f90137f0ab9a80dd319da050350.tar.xz linux-74b67efa8d7b4f90137f0ab9a80dd319da050350.zip |
drm: return -EFAULT if copy_to_user() fails
The copy_from_user() function returns the number of bytes remaining
to be copied but we want to return a negative error code. Otherwise
the callers treat it as a successful copy.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618131843.GA29463@mwanda
Diffstat (limited to 'block/blk-mq-rdma.c')
0 files changed, 0 insertions, 0 deletions