summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-01-20 23:30:42 +0000
committerache <ache@FreeBSD.org>1995-01-20 23:30:42 +0000
commit0edc03212c3f07948f41571217c0ce0b0ecdbc96 (patch)
tree0f15e99b77ccffbd601ee9f97e0919c7cb4b9330 /sys
parentcc0c7809c4134cf608f6a969eb23c674b0eeae29 (diff)
downloadFreeBSD-src-0edc03212c3f07948f41571217c0ce0b0ecdbc96.zip
FreeBSD-src-0edc03212c3f07948f41571217c0ce0b0ecdbc96.tar.gz
Change if (m->valid == 0) to if (m && m->valid == 0)
Diffstat (limited to 'sys')
-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