summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cma.c
diff options
context:
space:
mode:
authorLeon Romanovsky2018-05-29 13:56:17 +0200
committerDoug Ledford2018-06-01 17:16:23 +0200
commit671a6cc2ba05aa97ee5afe3479f1bdba2436970d (patch)
tree145726234d5a66bed5a3e5382ae0ac79d5554965 /drivers/infiniband/core/cma.c
parentRDMA/cm: Abort loop in case of CM dequeue (diff)
downloadkernel-qcow2-linux-671a6cc2ba05aa97ee5afe3479f1bdba2436970d.tar.gz
kernel-qcow2-linux-671a6cc2ba05aa97ee5afe3479f1bdba2436970d.tar.xz
kernel-qcow2-linux-671a6cc2ba05aa97ee5afe3479f1bdba2436970d.zip
RDMA/cma: Ignore unknown event
There is no need to bring down the whole machine, just because unknown event was received. It is better to ignore it silently. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/cma.c')
-rw-r--r--drivers/infiniband/core/cma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 441555a35525..6813ee717a38 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -2130,7 +2130,7 @@ static int cma_iw_handler(struct iw_cm_id *iw_id, struct iw_cm_event *iw_event)
event.param.conn.responder_resources = iw_event->ord;
break;
default:
- BUG_ON(1);
+ goto out;
}
event.status = iw_event->status;