Thread (11 messages) 11 messages, 3 authors, 2018-03-27

[PATCH v3 iproute2-next 4/8] rdma: initialize the rd struct

flat view
STALE3116d REVIEWED: 1 (0M)

From: Steve Wise <hidden>
Date: 2018-03-26 21:22:38
Also in: linux-rdma
Subsystem: the rest · Maintainer: Linus Torvalds

1 review trailer.

Initialize the rd struct so port_idx is 0 unless set otherwise.
Otherwise, strict_port queries end up passing an uninitialized PORT
nlattr.

Signed-off-by: Steve Wise <redacted>
Reviewed-by: Leon Romanovsky <redacted>
---
 rdma/rdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rdma/rdma.c b/rdma/rdma.c
index ab2c960..b43e538 100644
--- a/rdma/rdma.c
+++ b/rdma/rdma.c
@@ -135,7 +135,7 @@ int main(int argc, char **argv)
 	bool json_output = false;
 	bool force = false;
 	char *filename;
-	struct rd rd;
+	struct rd rd = {};
 	int opt;
 	int err;
 
-- 
1.8.3.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help