diff options
author | phk <phk@FreeBSD.org> | 2005-01-25 00:40:01 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-25 00:40:01 +0000 |
commit | 796d435574629a3a293e13d786e313d9d473a134 (patch) | |
tree | 036fb28e1de0abf406a1218cb941bcb38aa5d9fc /sys/vm | |
parent | d0bbbd08819960975b875f626d055d6f49ac295a (diff) | |
download | FreeBSD-src-796d435574629a3a293e13d786e313d9d473a134.zip FreeBSD-src-796d435574629a3a293e13d786e313d9d473a134.tar.gz |
Don't use VOP_GETVOBJECT, use vp->v_object directly.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_mmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 26ef916..ca24b98 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -1078,11 +1078,12 @@ vm_mmap_vnode(struct thread *td, vm_size_t objsize, return (error); } flags = *flagsp; + obj = vp->v_object; if (vp->v_type == VREG) { /* * Get the proper underlying object */ - if (VOP_GETVOBJECT(vp, &obj) != 0) { + if (obj == NULL) { error = EINVAL; goto done; } |