]>
Commit | Line | Data |
---|---|---|
1a629971 | 1 | From 4f6ca990a8ea08893ed6f8a8a679246b2bd5132e Mon Sep 17 00:00:00 2001 |
b3556f0d FG |
2 | From: Vasily Philipov <vasilyf@mellanox.com> |
3 | Date: Tue, 3 Oct 2017 12:15:13 +0300 | |
1a629971 | 4 | Subject: [PATCH 4/6] msg/async/rdma: uninitialized variable fix |
b3556f0d FG |
5 | MIME-Version: 1.0 |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | When port constructor is called gid_idx variable stays uninitialized if | |
10 | "#else" case is acting. | |
11 | ||
12 | Signed-off-by: Vasily Philipov <vasilyf@mellanox.com> | |
13 | (cherry picked from commit 7ba25bb52a66566c52b352bd6f05794853a6cdca) | |
14 | Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> | |
15 | --- | |
16 | src/msg/async/rdma/Infiniband.cc | 2 +- | |
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
18 | ||
19 | diff --git a/src/msg/async/rdma/Infiniband.cc b/src/msg/async/rdma/Infiniband.cc | |
20 | index 37e1a53077..06f514fe24 100644 | |
21 | --- a/src/msg/async/rdma/Infiniband.cc | |
22 | +++ b/src/msg/async/rdma/Infiniband.cc | |
23 | @@ -28,7 +28,7 @@ static const uint32_t MAX_INLINE_DATA = 0; | |
24 | static const uint32_t TCP_MSG_LEN = sizeof("0000:00000000:00000000:00000000:00000000000000000000000000000000"); | |
25 | static const uint32_t CQ_DEPTH = 30000; | |
26 | ||
27 | -Port::Port(CephContext *cct, struct ibv_context* ictxt, uint8_t ipn): ctxt(ictxt), port_num(ipn), port_attr(new ibv_port_attr) | |
28 | +Port::Port(CephContext *cct, struct ibv_context* ictxt, uint8_t ipn): ctxt(ictxt), port_num(ipn), port_attr(new ibv_port_attr), gid_idx(0) | |
29 | { | |
30 | #ifdef HAVE_IBV_EXP | |
31 | union ibv_gid cgid; | |
32 | -- | |
33 | 2.14.1 | |
34 |