diff options
| -rw-r--r-- | drivers/infiniband/core/ucma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index b0f189be543b..826016b013ca 100644 --- a/drivers/infiniband/core/ucma.c +++ b/drivers/infiniband/core/ucma.c | |||
| @@ -271,7 +271,7 @@ static int ucma_event_handler(struct rdma_cm_id *cm_id, | |||
| 271 | goto out; | 271 | goto out; |
| 272 | } | 272 | } |
| 273 | ctx->backlog--; | 273 | ctx->backlog--; |
| 274 | } else if (!ctx->uid) { | 274 | } else if (!ctx->uid || ctx->cm_id != cm_id) { |
| 275 | /* | 275 | /* |
| 276 | * We ignore events for new connections until userspace has set | 276 | * We ignore events for new connections until userspace has set |
| 277 | * their context. This can only happen if an error occurs on a | 277 | * their context. This can only happen if an error occurs on a |
