Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/nfs nfsrv_zapsock: fix an inverted condition in nfs_sysc...



details:   https://anonhg.NetBSD.org/src/rev/9cd3e84008b4
branches:  trunk
changeset: 567349:9cd3e84008b4
user:      yamt <yamt%NetBSD.org@localhost>
date:      Thu Jun 10 12:57:43 2004 +0000

description:
nfsrv_zapsock: fix an inverted condition in nfs_syscall.c rev.1.74.

diffstat:

 sys/nfs/nfs_syscalls.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r de3cfe4cde03 -r 9cd3e84008b4 sys/nfs/nfs_syscalls.c
--- a/sys/nfs/nfs_syscalls.c    Thu Jun 10 12:11:19 2004 +0000
+++ b/sys/nfs/nfs_syscalls.c    Thu Jun 10 12:57:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_syscalls.c,v 1.75 2004/05/22 22:52:16 jonathan Exp $       */
+/*     $NetBSD: nfs_syscalls.c,v 1.76 2004/06/10 12:57:43 yamt Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_syscalls.c,v 1.75 2004/05/22 22:52:16 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_syscalls.c,v 1.76 2004/06/10 12:57:43 yamt Exp $");
 
 #include "fs_nfs.h"
 #include "opt_nfs.h"
@@ -839,7 +839,7 @@
        int s;
 
        simple_lock(&nfsd_slock);
-       if ((slp->ns_flag & SLP_VALID) != 0) {
+       if ((slp->ns_flag & SLP_VALID) == 0) {
                simple_unlock(&nfsd_slock);
                return;
        }



Home | Main Index | Thread Index | Old Index