diff options
-rw-r--r-- | drivers/infiniband/core/ucma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index 56a4b7ca7ee3..45d67e9228d7 100644 --- a/drivers/infiniband/core/ucma.c +++ b/drivers/infiniband/core/ucma.c | |||
@@ -1124,6 +1124,9 @@ static int ucma_set_ib_path(struct ucma_context *ctx, | |||
1124 | if (!optlen) | 1124 | if (!optlen) |
1125 | return -EINVAL; | 1125 | return -EINVAL; |
1126 | 1126 | ||
1127 | memset(&sa_path, 0, sizeof(sa_path)); | ||
1128 | sa_path.vlan_id = 0xffff; | ||
1129 | |||
1127 | ib_sa_unpack_path(path_data->path_rec, &sa_path); | 1130 | ib_sa_unpack_path(path_data->path_rec, &sa_path); |
1128 | ret = rdma_set_ib_paths(ctx->cm_id, &sa_path, 1); | 1131 | ret = rdma_set_ib_paths(ctx->cm_id, &sa_path, 1); |
1129 | if (ret) | 1132 | if (ret) |