diff --git a/net/rpmsg/rpmsg_sockif.c b/net/rpmsg/rpmsg_sockif.c index 72d338d6e2..2880ef6d9c 100644 --- a/net/rpmsg/rpmsg_sockif.c +++ b/net/rpmsg/rpmsg_sockif.c @@ -402,7 +402,7 @@ static inline void rpmsg_socket_destroy_ept( if (conn->ept.rdev) { - if (conn->backlog) + if (conn->backlog > 0) { /* Listen socket */