Module Name: src Committed By: ozaki-r Date: Tue Jul 5 08:48:51 UTC 2016
Modified Files: src/sys/compat/linux32/common: linux32_socket.c Log Message: Fix psref isn't released in a case of IFADDR_EMPTY To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/compat/linux32/common/linux32_socket.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/linux32/common/linux32_socket.c diff -u src/sys/compat/linux32/common/linux32_socket.c:1.23 src/sys/compat/linux32/common/linux32_socket.c:1.24 --- src/sys/compat/linux32/common/linux32_socket.c:1.23 Thu Jun 16 02:38:40 2016 +++ src/sys/compat/linux32/common/linux32_socket.c Tue Jul 5 08:48:51 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_socket.c,v 1.23 2016/06/16 02:38:40 ozaki-r Exp $ */ +/* $NetBSD: linux32_socket.c,v 1.24 2016/07/05 08:48:51 ozaki-r Exp $ */ /*- * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.23 2016/06/16 02:38:40 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.24 2016/07/05 08:48:51 ozaki-r Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -450,8 +450,7 @@ linux32_getifconf(struct lwp *l, registe error = ENAMETOOLONG; goto release_exit; } - if (IFADDR_EMPTY(ifp)) - continue; + IFADDR_FOREACH(ifa, ifp) { sa = ifa->ifa_addr; if (sa->sa_family != AF_INET ||