Skip to content

Commit 03aaaa9

Browse files
Richard Alpedavem330
authored andcommitted
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: 44a8ae9 (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>
1 parent 3274940 commit 03aaaa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/tipc/netlink_compat.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ static int tipc_nl_compat_name_table_dump(struct tipc_nl_compat_msg *msg,
802802
goto out;
803803

804804
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]),
806806
scope_str[nla_get_u32(publ[TIPC_NLA_PUBL_SCOPE])]);
807807
out:
808808
tipc_tlv_sprintf(msg->rep, "\n");

0 commit comments

Comments
 (0)