diff options
author | Richard Alpe <richard.alpe@ericsson.com> | 2016-05-17 10:57:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-17 12:34:02 -0400 |
commit | 03aaaa9b941e136757b55c4cf775aab6068dfd94 (patch) | |
tree | 1131d62808956a1b495f13a7c76c866c63e83eef /net | |
parent | 3274940bd3d87043c74aa444ff3b0dff56b3e9ea (diff) |
tipc: fix nametable publication field in nl compat
The publication field of the old netlink API should contain the
publication key and not the publication reference.
Fixes: 44a8ae94fd55 (tipc: convert legacy nl name table dump to nl compat)
Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/netlink_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/netlink_compat.c b/net/tipc/netlink_compat.c index d7d050f44fc1..4dfc5c14f8c3 100644 --- a/net/tipc/netlink_compat.c +++ b/net/tipc/netlink_compat.c | |||
@@ -802,7 +802,7 @@ static int tipc_nl_compat_name_table_dump(struct tipc_nl_compat_msg *msg, | |||
802 | goto out; | 802 | goto out; |
803 | 803 | ||
804 | tipc_tlv_sprintf(msg->rep, "%-10u %s", | 804 | tipc_tlv_sprintf(msg->rep, "%-10u %s", |
805 | nla_get_u32(publ[TIPC_NLA_PUBL_REF]), | 805 | nla_get_u32(publ[TIPC_NLA_PUBL_KEY]), |
806 | scope_str[nla_get_u32(publ[TIPC_NLA_PUBL_SCOPE])]); | 806 | scope_str[nla_get_u32(publ[TIPC_NLA_PUBL_SCOPE])]); |
807 | out: | 807 | out: |
808 | tipc_tlv_sprintf(msg->rep, "\n"); | 808 | tipc_tlv_sprintf(msg->rep, "\n"); |