Module Name: src Committed By: riastradh Date: Sat Mar 12 20:46:03 UTC 2022
Modified Files: src/sys/compat/common: vfs_syscalls_30.c Log Message: compat_30: Fix thinko in previous. Let's not go into an infinite loop of stack smashing! To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/compat/common/vfs_syscalls_30.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/common/vfs_syscalls_30.c diff -u src/sys/compat/common/vfs_syscalls_30.c:1.44 src/sys/compat/common/vfs_syscalls_30.c:1.45 --- src/sys/compat/common/vfs_syscalls_30.c:1.44 Sat Mar 12 15:54:23 2022 +++ src/sys/compat/common/vfs_syscalls_30.c Sat Mar 12 20:46:03 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls_30.c,v 1.44 2022/03/12 15:54:23 riastradh Exp $ */ +/* $NetBSD: vfs_syscalls_30.c,v 1.45 2022/03/12 20:46:03 riastradh Exp $ */ /*- * Copyright (c) 2005, 2008 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_30.c,v 1.44 2022/03/12 15:54:23 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_30.c,v 1.45 2022/03/12 20:46:03 riastradh Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -310,7 +310,7 @@ again: } /* if we squished out the whole block, try again */ - if (any) { + if (!any) { if (cookiebuf) free(cookiebuf, M_TEMP); cookiebuf = NULL;