summaryrefslogtreecommitdiff
path: root/rdma
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-11-09 00:38:37 +0000
committerDavid Ahern <dsahern@gmail.com>2019-11-09 00:38:37 +0000
commit081140bbc43df11da5cc3f520f8473468094b60b (patch)
tree8fb8788c2e129bdb4d7cd9bfa442e91e57ebf362 /rdma
parentfb2e033add073893dea71bb483353790fe8c5354 (diff)
parent0932814458eb386644c1248e5aabf8303c38d7bb (diff)
downloadiproute2-081140bbc43df11da5cc3f520f8473468094b60b.tar.gz
Merge branch 'master' into next
Signed-off-by: David Ahern <dsahern@gmail.com>
Diffstat (limited to 'rdma')
-rw-r--r--rdma/sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdma/sys.c b/rdma/sys.c
index cef39081..1a434a25 100644
--- a/rdma/sys.c
+++ b/rdma/sys.c
@@ -31,7 +31,7 @@ static int sys_show_parse_cb(const struct nlmsghdr *nlh, void *data)
netns_mode =
mnl_attr_get_u8(tb[RDMA_NLDEV_SYS_ATTR_NETNS_MODE]);
- if (netns_mode <= ARRAY_SIZE(netns_modes_str))
+ if (netns_mode < ARRAY_SIZE(netns_modes_str))
mode_str = netns_modes_str[netns_mode];
else
mode_str = "unknown";