diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-01-20 23:30:42 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-01-20 23:30:42 +0000 |
commit | f76c8e8cc357a27df3055e627af99012b5caa118 (patch) | |
tree | 0f15e99b77ccffbd601ee9f97e0919c7cb4b9330 | |
parent | 2ade60ce3ce2dfe15ab8b75dcaec1af4f56658a4 (diff) | |
download | src-f76c8e8cc357a27df3055e627af99012b5caa118.tar.gz src-f76c8e8cc357a27df3055e627af99012b5caa118.zip |
Change if (m->valid == 0) to if (m && m->valid == 0)
Notes
Notes:
svn path=/head/; revision=5759
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 8ecc2294c72f..d4a8b9f8bbf7 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) |