From a76decc6f7afc9eeb840a0efe942faa261969ae7 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Sat, 3 Mar 2001 15:15:33 +0000 Subject: 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. --- sys/miscfs/procfs/procfs_vfsops.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sys/miscfs') diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c index fe7f390d7161..91daf9d4f616 100644 --- a/sys/miscfs/procfs/procfs_vfsops.c +++ b/sys/miscfs/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); -- cgit v1.3