diff options
Diffstat (limited to 'sys/fs/fdescfs')
-rw-r--r-- | sys/fs/fdescfs/fdesc_vnops.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c index 90c4be0..c16c0a2 100644 --- a/sys/fs/fdescfs/fdesc_vnops.c +++ b/sys/fs/fdescfs/fdesc_vnops.c @@ -151,6 +151,13 @@ loop: fd->fd_type = ftype; fd->fd_fd = -1; fd->fd_ix = ix; + /* XXX: vnode should be locked here */ + error = insmntque(*vpp, mp); /* XXX: Too early for mpsafe fs */ + if (error != 0) { + free(fd, M_TEMP); + *vpp = NULLVP; + goto out; + } LIST_INSERT_HEAD(fc, fd, fd_hash); out: |