Re: [PATCH v2 iproute2-next 2/6] rdma: initialize the rd struct

2018-03-13 Thread Leon Romanovsky
On Tue, Feb 27, 2018 at 08:07:00AM -0800, Steve Wise wrote: > 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 > --- > rdma/rdma.c | 2 +- > 1

[PATCH v2 iproute2-next 2/6] rdma: initialize the rd struct

2018-03-02 Thread Steve Wise
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 --- rdma/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdma/rdma.c