RDMA/mlx4: Discard unknown SQP work requests
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 May 2018 11:56:14 +0000 (14:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 09:23:09 +0000 (11:23 +0200)
commitafe249e3e38d51e58eba9b6992646a1f8070883d
tree7d0239eda1864f9370b8c3506f20ff16615e8163
parent52e167187be8b584673204f6d87b07aff7725e47
RDMA/mlx4: Discard unknown SQP work requests

commit 6b1ca7ece15e94251d1d0d919f813943e4a58059 upstream.

There is no need to crash the machine if unknown work request was
received in SQP MAD.

Cc: <stable@vger.kernel.org> # 3.6
Fixes: 37bfc7c1e83f ("IB/mlx4: SR-IOV multiplex and demultiplex MADs")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx4/mad.c