mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
tipc: fix nametable publication field in nl compat
[ Upstream commit03aaaa9b94] The publication field of the old netlink API should contain the publication key and not the publication reference. Fixes:44a8ae94fd(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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c55a7faa58
commit
988ae90abb
@@ -802,7 +802,7 @@ static int tipc_nl_compat_name_table_dump(struct tipc_nl_compat_msg *msg,
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
tipc_tlv_sprintf(msg->rep, "%-10u %s",
|
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])]);
|
scope_str[nla_get_u32(publ[TIPC_NLA_PUBL_SCOPE])]);
|
||||||
out:
|
out:
|
||||||
tipc_tlv_sprintf(msg->rep, "\n");
|
tipc_tlv_sprintf(msg->rep, "\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user