mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 23:28:57 +00:00
Fix the problem with panics when mounting on nonexistant directories. Probably
my fault in the first place...
This commit is contained in:
parent
ea3a7da2c8
commit
17b9f9f4a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3602
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
|
||||
* $Id: vfs_syscalls.c,v 1.12 1994/10/08 22:33:43 phk Exp $
|
||||
* $Id: vfs_syscalls.c,v 1.13 1994/10/11 20:40:12 sos Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -94,7 +94,7 @@ mount(p, uap, retval)
|
||||
* Get vnode to be covered
|
||||
*/
|
||||
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, uap->path, p);
|
||||
namei(&nd);
|
||||
error = namei(&nd);
|
||||
if (error)
|
||||
return (error);
|
||||
vp = nd.ni_vp;
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
|
||||
* $Id: vfs_syscalls.c,v 1.12 1994/10/08 22:33:43 phk Exp $
|
||||
* $Id: vfs_syscalls.c,v 1.13 1994/10/11 20:40:12 sos Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -94,7 +94,7 @@ mount(p, uap, retval)
|
||||
* Get vnode to be covered
|
||||
*/
|
||||
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, uap->path, p);
|
||||
namei(&nd);
|
||||
error = namei(&nd);
|
||||
if (error)
|
||||
return (error);
|
||||
vp = nd.ni_vp;
|
||||
|
Loading…
Reference in New Issue
Block a user