diff --git a/net/tcp/tcp_netpoll.c b/net/tcp/tcp_netpoll.c index 642a7e84be4..446d5452a10 100644 --- a/net/tcp/tcp_netpoll.c +++ b/net/tcp/tcp_netpoll.c @@ -226,6 +226,7 @@ int tcp_pollsetup(FAR struct socket *psock, FAR struct pollfd *fds) { if (++info >= &conn->pollinfo[CONFIG_NET_TCP_NPOLLWAITERS]) { + DEBUGPANIC(); ret = -ENOMEM; goto errout_with_lock; }