diff options
| author | Jianguo Wu <[email protected]> | 2020-12-05 07:56:33 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2020-12-08 01:45:29 +0000 |
| commit | f55628b3e7648198e9c072b52080c5dea8678adf (patch) | |
| tree | 9d83caa9c2eb043176e182c9dab6d3b32561dc20 /net/tipc | |
| parent | bridge: Fix a deadlock when enabling multicast snooping (diff) | |
| download | kernel-f55628b3e7648198e9c072b52080c5dea8678adf.tar.gz kernel-f55628b3e7648198e9c072b52080c5dea8678adf.zip | |
mptcp: print new line in mptcp_seq_show() if mptcp isn't in use
When do cat /proc/net/netstat, the output isn't append with a new line, it looks like this:
[root@localhost ~]# cat /proc/net/netstat
...
MPTcpExt: 0 0 0 0 0 0 0 0 0 0 0 0 0[root@localhost ~]#
This is because in mptcp_seq_show(), if mptcp isn't in use, net->mib.mptcp_statistics is NULL,
so it just puts all 0 after "MPTcpExt:", and return, forgot the '\n'.
After this patch:
[root@localhost ~]# cat /proc/net/netstat
...
MPTcpExt: 0 0 0 0 0 0 0 0 0 0 0 0 0
[root@localhost ~]#
Fixes: fc518953bc9c8d7d ("mptcp: add and use MIB counter infrastructure")
Signed-off-by: Jianguo Wu <[email protected]>
Acked-by: Florian Westphal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions
