mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
Supply the mount point given to mfs_mount when getting a vnode for the
mount. This may have been a contributor to the 'null v_mount in fsync()' problem This is another, perhaps slightly less urgent, 2.2 last-minute candidate. Reviewed by: sef
This commit is contained in:
parent
3a558f83dd
commit
789962659e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23388
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)mfs_vfsops.c 8.11 (Berkeley) 6/19/95
|
||||
* $Id$
|
||||
* $Id: mfs_vfsops.c,v 1.26 1997/02/22 09:47:31 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -372,7 +372,7 @@ mfs_mount(mp, path, data, ndp, p)
|
||||
*/
|
||||
MALLOC(mfsp, struct mfsnode *, sizeof *mfsp, M_MFSNODE, M_WAITOK);
|
||||
|
||||
err = getnewvnode(VT_MFS, (struct mount *)0, mfs_vnodeop_p, &devvp);
|
||||
err = getnewvnode(VT_MFS, mp, mfs_vnodeop_p, &devvp);
|
||||
if (err) {
|
||||
FREE(mfsp, M_MFSNODE);
|
||||
goto error_1;
|
||||
|
Loading…
Reference in New Issue
Block a user