Skip to content
Commit 5e631a03 authored by Dan Carpenter's avatar Dan Carpenter Committed by Roland Dreier
Browse files

mlx5: Return -EFAULT instead of -EPERM



For copy_to/from_user() failure, the correct error code is -EFAULT not
-EPERM.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 288dde9f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment