Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs Fix crash reported in PR7116 on shutdown



details:   https://anonhg.NetBSD.org/src/rev/8a1d0e247b3a
branches:  trunk
changeset: 467477:8a1d0e247b3a
user:      sommerfe <sommerfe%NetBSD.org@localhost>
date:      Thu Mar 25 04:07:33 1999 +0000

description:
Fix crash reported in PR7116 on shutdown

diffstat:

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

diffs (18 lines):

diff -r d813707c7b33 -r 8a1d0e247b3a sys/nfs/nfs_nqlease.c
--- a/sys/nfs/nfs_nqlease.c     Thu Mar 25 04:05:36 1999 +0000
+++ b/sys/nfs/nfs_nqlease.c     Thu Mar 25 04:07:33 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_nqlease.c,v 1.28 1999/03/06 05:34:41 fair Exp $    */
+/*     $NetBSD: nfs_nqlease.c,v 1.29 1999/03/25 04:07:33 sommerfe Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -466,6 +466,8 @@
                                so = lph->lph_slp->ns_so;
                        } else
                                goto nextone;
+                       if (!so)
+                               goto nextone;
                        sotype = so->so_type;
                        if (so->so_proto->pr_flags & PR_CONNREQUIRED)
                                solockp = &lph->lph_slp->ns_solock;



Home | Main Index | Thread Index | Old Index