]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix an error code in __mlx5_ib_modify_qp()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 6 Mar 2018 10:00:31 +0000 (13:00 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 7 Mar 2018 03:08:39 +0000 (20:08 -0700)
commit4a09a6ca3685be595982206de77b3498a69041e1
treed2503d1ac782610c42e25d275c1aa3a1ef7e325e
parente66b090392e45b979003d7cd82e9fd436fdc7c35
IB/mlx5: Fix an error code in __mlx5_ib_modify_qp()

"err" is either zero or possibly uninitialized here.  It should be
-EINVAL.

Fixes: afaafae902f0 ("{IB, net}/mlx5: Move the modify QP operation table to mlx5_ib")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c