Re: [PATCH iproute2] rdma: stat: initialize ret in stat_qp_show_parse_cb()

2021-04-18 Thread Leon Romanovsky
On Sun, Apr 18, 2021 at 02:00:38PM +0200, Andrea Claudi wrote: > On Sun, Apr 18, 2021 at 1:07 PM Leon Romanovsky wrote: > > > > On Wed, Apr 14, 2021 at 12:50:57AM +0200, Andrea Claudi wrote: > > > In the unlikely case in which the mnl_attr_for_each_nested() cycle is > > > not executed, this functi

Re: [PATCH iproute2] rdma: stat: initialize ret in stat_qp_show_parse_cb()

2021-04-18 Thread Andrea Claudi
On Sun, Apr 18, 2021 at 1:07 PM Leon Romanovsky wrote: > > On Wed, Apr 14, 2021 at 12:50:57AM +0200, Andrea Claudi wrote: > > In the unlikely case in which the mnl_attr_for_each_nested() cycle is > > not executed, this function return an uninitialized value. > > > > Fix this initializing ret to 0.

Re: [PATCH iproute2] rdma: stat: initialize ret in stat_qp_show_parse_cb()

2021-04-18 Thread Leon Romanovsky
On Wed, Apr 14, 2021 at 12:50:57AM +0200, Andrea Claudi wrote: > In the unlikely case in which the mnl_attr_for_each_nested() cycle is > not executed, this function return an uninitialized value. > > Fix this initializing ret to 0. > > Fixes: 5937552b42e4 ("rdma: Add "stat qp show" support") > Si

[PATCH iproute2] rdma: stat: initialize ret in stat_qp_show_parse_cb()

2021-04-13 Thread Andrea Claudi
In the unlikely case in which the mnl_attr_for_each_nested() cycle is not executed, this function return an uninitialized value. Fix this initializing ret to 0. Fixes: 5937552b42e4 ("rdma: Add "stat qp show" support") Signed-off-by: Andrea Claudi --- rdma/stat.c | 2 +- 1 file changed, 1 insert