]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5: Return -EFAULT instead of -EPERM
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Jul 2013 10:58:59 +0000 (13:58 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 11 Jul 2013 23:48:45 +0000 (16:48 -0700)
commitc28a89fd60920972ae8138ee91b77fd3d2cbb9fc
tree6c6d5a4df7d60a7eaa849c0dd10b41d64fd8855d
parent53a683952b9e3df796f0fc14526b05663a5bb941
mlx5: Return -EFAULT instead of -EPERM

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

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/mr.c
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c