summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 8ecc229..d4a8b9f 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: vfs_bio.c,v 1.21 1995/01/15 09:35:58 davidg Exp $
+ * $Id: vfs_bio.c,v 1.22 1995/01/20 20:11:31 wpaul Exp $
*/
/*
@@ -1163,7 +1163,7 @@ allocbuf(struct buf * bp, int size, int vmio)
m->flags |= PG_WANTED;
tsleep(m, PRIBIO, "pgtblk", 0);
} else
- if (m->valid == 0)
+ if (m && m->valid == 0)
vm_page_free(m);
splx(s);
if (bufferdestroyed)
OpenPOWER on IntegriCloud