[CRIU] [PATCH] sk-netlink: typo fix for unconnected netlink sockets

Andrey Vagin avagin at openvz.org
Fri Mar 29 11:52:09 EDT 2013


The netlink_diag doesn't provide any info about non-connected and
non-bound sockets.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 sk-netlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sk-netlink.c b/sk-netlink.c
index b06808b..dbfe8ca 100644
--- a/sk-netlink.c
+++ b/sk-netlink.c
@@ -91,7 +91,7 @@ static int dump_one_netlink_fd(int lfd, u32 id, const struct fd_parms *p)
 	SkOptsEntry skopts = SK_OPTS_ENTRY__INIT;
 
 	sk = (struct netlink_sk_desc *)lookup_socket(p->stat.st_ino, PF_NETLINK, 0);
-	if (IS_ERR_OR_NULL(sk))
+	if (IS_ERR(sk))
 		goto err;
 
 	ne.id = id;
-- 
1.7.11.7



More information about the CRIU mailing list