]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d8d34b5bab45934fc53f4c86cf78901499d3c22
tree1c039cb06687b12e48f914bd84d9789e2ff14396
parent326b2aa75813ef678249e720f1c6d27dcef6d00e
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