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:21:29 +0000 (11:21 +0200)
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

index d862b9b7910e489dc5a4a4f4b00d9b44eec4f764..199a9cdd0d12a34438e2e2bf7ac85b3363458a4e 100644 (file)
@@ -1780,7 +1780,6 @@ static void mlx4_ib_sqp_comp_worker(struct work_struct *work)
                                               "buf:%lld\n", wc.wr_id);
                                break;
                        default:
-                               BUG_ON(1);
                                break;
                        }
                } else  {