Re: [patch -next] mlx5: return -EFAULT instead of -EPERM

2013-07-17 Thread Eli Cohen
Acked-by Eli Cohen e...@mellanox.com On Wed, Jul 10, 2013 at 01:58:59PM +0300, Dan Carpenter wrote: For copy_to/from_user() failure, the correct error code is -EFAULT not -EPERM. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/infiniband/hw/mlx5/mr.c

[patch -next] mlx5: return -EFAULT instead of -EPERM

2013-07-10 Thread Dan Carpenter
For copy_to/from_user() failure, the correct error code is -EFAULT not -EPERM. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index e2daa8f..bd41df9 100644 --- a/drivers/infiniband/hw/mlx5/mr.c +++

Re: [patch -next] mlx5: return -EFAULT instead of -EPERM

2013-07-10 Thread Or Gerlitz
On 10/07/2013 13:58, Dan Carpenter wrote: For copy_to/from_user() failure, the correct error code is -EFAULT not -EPERM. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index e2daa8f..bd41df9 100644 ---