Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1429311 > unrolled thread

[PATCH 4.4 05/75] tipc: fix nametable publication field in nl compat

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-06-23 01:30 +0200
Last post2016-06-23 01:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.4 05/75] tipc: fix nametable publication field in nl compat Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-06-23 01:30 +0200

#1429311 — [PATCH 4.4 05/75] tipc: fix nametable publication field in nl compat

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-06-23 01:30 +0200
Subject[PATCH 4.4 05/75] tipc: fix nametable publication field in nl compat
Message-ID<rMZKO-1BV-15@gated-at.bofh.it>
4.4-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Richard Alpe <richard.alpe@ericsson.com>

[ Upstream commit 03aaaa9b941e136757b55c4cf775aab6068dfd94 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 net/tipc/netlink_compat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/net/tipc/netlink_compat.c
+++ b/net/tipc/netlink_compat.c
@@ -802,7 +802,7 @@ static int tipc_nl_compat_name_table_dum
 		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");

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web