tipc: fix nametable publication field in nl compat
authorRichard Alpe <richard.alpe@ericsson.com>
Tue, 17 May 2016 14:57:37 +0000 (16:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 16:34:02 +0000 (12:34 -0400)
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>
net/tipc/netlink_compat.c

index d7d050f44fc131942b5e87ab3ce23edbc8376684..4dfc5c14f8c3c3f38a0fa0f1bfdcf40ff61ace07 100644 (file)
@@ -802,7 +802,7 @@ static int tipc_nl_compat_name_table_dump(struct tipc_nl_compat_msg *msg,
                goto out;
 
        tipc_tlv_sprintf(msg->rep, "%-10u %s",
-                        nla_get_u32(publ[TIPC_NLA_PUBL_REF]),
+                        nla_get_u32(publ[TIPC_NLA_PUBL_KEY]),
                         scope_str[nla_get_u32(publ[TIPC_NLA_PUBL_SCOPE])]);
 out:
        tipc_tlv_sprintf(msg->rep, "\n");