IB/mlx5: Return EINVAL when caller specifies too many SGEs
authorChuck Lever <chuck.lever@oracle.com>
Sun, 28 Aug 2016 07:58:34 +0000 (10:58 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 2 Sep 2016 18:11:39 +0000 (14:11 -0400)
commit24be409beede1a7cbe95b1740c4cdade3b6a8187
tree1c039cb06687b12e48f914bd84d9789e2ff14396
parent20697434b6ea9c6d895ebc5217a46f18850a109f
IB/mlx5: Return EINVAL when caller specifies too many SGEs

The returned value should be EINVAL, because it is caused by wrong
caller and not by internal overflow event.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c