mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
tipc: Prevent display of name table types with no publications
This patch adds a check to prevent TIPC's name table display code from listing a name type entry if it exists only to hold subscription info, rather than published names. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7571521756
commit
0f15d36453
1 changed files with 3 additions and 0 deletions
|
@ -905,6 +905,9 @@ static void nameseq_list(struct name_seq *seq, struct print_buf *buf, u32 depth,
|
|||
struct sub_seq *sseq;
|
||||
char typearea[11];
|
||||
|
||||
if (seq->first_free == 0)
|
||||
return;
|
||||
|
||||
sprintf(typearea, "%-10u", seq->type);
|
||||
|
||||
if (depth == 1) {
|
||||
|
|
Loading…
Reference in a new issue