diff options
author | dfr <dfr@FreeBSD.org> | 2001-03-03 15:15:33 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2001-03-03 15:15:33 +0000 |
commit | 182c65b1d948b69aea4e6629be3ad1c62a11a2df (patch) | |
tree | 034938b59acd5762dec39c537276e47c2a377484 /sys/fs/procfs/procfs_vfsops.c | |
parent | dd8ce5c6baffa74edb44ee67f48eaa5a3a512ac7 (diff) | |
download | FreeBSD-src-182c65b1d948b69aea4e6629be3ad1c62a11a2df.zip FreeBSD-src-182c65b1d948b69aea4e6629be3ad1c62a11a2df.tar.gz |
Remove the copyinstr call which was trying to copy the pathname in from
user space. It has already been copied in and mp->mnt_stat.f_mntonname has
already been initialised by the caller.
This fixes a panic on the alpha caused by the fact that the variable
'size' wasn't initialised because the call to copyinstr() bailed out with
an EFAULT error.
Diffstat (limited to 'sys/fs/procfs/procfs_vfsops.c')
-rw-r--r-- | sys/fs/procfs/procfs_vfsops.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs_vfsops.c b/sys/fs/procfs/procfs_vfsops.c index fe7f390..91daf9d 100644 --- a/sys/fs/procfs/procfs_vfsops.c +++ b/sys/fs/procfs/procfs_vfsops.c @@ -87,9 +87,6 @@ procfs_mount(mp, path, data, ndp, p) mp->mnt_data = 0; vfs_getnewfsid(mp); - (void) copyinstr(path, (caddr_t)mp->mnt_stat.f_mntonname, MNAMELEN, &size); - bzero(mp->mnt_stat.f_mntonname + size, MNAMELEN - size); - size = sizeof("procfs") - 1; bcopy("procfs", mp->mnt_stat.f_mntfromname, size); bzero(mp->mnt_stat.f_mntfromname + size, MNAMELEN - size); |