]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/tcp_ulp.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[linux.git] / net / ipv4 / tcp_ulp.c
index 4849edb62d52964c61ef2d0601c16baa662e196d..12ab5db2b71cb5781fd9517d944138e1cecbd5dc 100644 (file)
@@ -92,6 +92,9 @@ void tcp_get_available_ulp(char *buf, size_t maxlen)
                offs += snprintf(buf + offs, maxlen - offs,
                                 "%s%s",
                                 offs == 0 ? "" : " ", ulp_ops->name);
+
+               if (WARN_ON_ONCE(offs >= maxlen))
+                       break;
        }
        rcu_read_unlock();
 }