diff options
author | David Ahern <dsahern@gmail.com> | 2019-11-09 00:38:37 +0000 |
---|---|---|
committer | David Ahern <dsahern@gmail.com> | 2019-11-09 00:38:37 +0000 |
commit | 081140bbc43df11da5cc3f520f8473468094b60b (patch) | |
tree | 8fb8788c2e129bdb4d7cd9bfa442e91e57ebf362 /rdma | |
parent | fb2e033add073893dea71bb483353790fe8c5354 (diff) | |
parent | 0932814458eb386644c1248e5aabf8303c38d7bb (diff) | |
download | iproute2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |