]> git.ipfire.org Git - thirdparty/iproute2.git/commit
rdma: stat: fix return code
authorAndrea Claudi <aclaudi@redhat.com>
Sun, 18 Apr 2021 12:56:30 +0000 (14:56 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 21 Apr 2021 01:08:38 +0000 (18:08 -0700)
commitc8216fabe8d9df3db38283cca1b6caeca033f9b9
tree1a1f1c4d68b49b55134ea9b4ad3561b1890a5610
parent16ce4d23661aee6cecfea0a8ded0ce11ef3a3ecd
rdma: stat: fix return code

libmnl defines MNL_CB_OK as 1 and MNL_CB_ERROR as -1. rdma uses these
return codes, and stat_qp_show_parse_cb() should do the same.

Fixes: 16ce4d23661a ("rdma: stat: initialize ret in stat_qp_show_parse_cb()")
Reported-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Acked-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/stat.c