aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ulp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_ulp.c')
-rw-r--r--net/ipv4/tcp_ulp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_ulp.c b/net/ipv4/tcp_ulp.c
index e855ea70819b..2417f55374c5 100644
--- a/net/ipv4/tcp_ulp.c
+++ b/net/ipv4/tcp_ulp.c
@@ -88,6 +88,7 @@ void tcp_get_available_ulp(char *buf, size_t maxlen)
88 struct tcp_ulp_ops *ulp_ops; 88 struct tcp_ulp_ops *ulp_ops;
89 size_t offs = 0; 89 size_t offs = 0;
90 90
91 *buf = '\0';
91 rcu_read_lock(); 92 rcu_read_lock();
92 list_for_each_entry_rcu(ulp_ops, &tcp_ulp_list, list) { 93 list_for_each_entry_rcu(ulp_ops, &tcp_ulp_list, list) {
93 offs += snprintf(buf + offs, maxlen - offs, 94 offs += snprintf(buf + offs, maxlen - offs,