diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-02-08 16:39:04 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-02-08 16:39:04 +0000 |
commit | 488c2b1ff7c04a92519ff3b599597764428320e8 (patch) | |
tree | 5723d104f493fad4843f7298c65cbb60f1708c3b | |
parent | a0ded2a52745b9611d0535b4964055c0638eb7ca (diff) |
prevent a panic when suspending on an idle system
-rw-r--r-- | sys/ufs/mfs/mfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c index 4bd0d755639..4d08d287357 100644 --- a/sys/ufs/mfs/mfs_vnops.c +++ b/sys/ufs/mfs/mfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vnops.c,v 1.13 1999/08/30 18:05:52 art Exp $ */ +/* $OpenBSD: mfs_vnops.c,v 1.14 2000/02/08 16:39:03 niklas Exp $ */ /* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */ /* @@ -184,7 +184,7 @@ mfs_strategy(v) else bcopy(bp->b_data, base, bp->b_bcount); biodone(bp); - } else if (mfsp->mfs_pid == p->p_pid) { + } else if (p != NULL && mfsp->mfs_pid == p->p_pid) { mfs_doio(bp, mfsp->mfs_baseoff); } else { bp->b_actf = mfsp->mfs_buflist; |