Remove the copyout() of the mount args from puffs_mount(), the buffer
supplied is a kernel address. The puffs userspace code has been changed to do a 2nd call with MNT_GETARGS to retrieve the information.
This commit is contained in:
parent
71edd4968d
commit
6210687bcf
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: puffs_vfsops.c,v 1.48 2007/07/12 19:35:33 dsl Exp $ */
|
/* $NetBSD: puffs_vfsops.c,v 1.49 2007/07/14 16:06:53 dsl Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
|
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.48 2007/07/12 19:35:33 dsl Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.49 2007/07/14 16:06:53 dsl Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
@ -161,10 +161,6 @@ puffs_mount(struct mount *mp, const char *path, void *data, size_t *data_len,
|
||||||
puffs_maxpnodebuckets);
|
puffs_maxpnodebuckets);
|
||||||
}
|
}
|
||||||
|
|
||||||
error = copyout(args, data, sizeof(struct puffs_kargs));
|
|
||||||
if (error)
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
error = set_statvfs_info(path, UIO_USERSPACE, namebuf,
|
error = set_statvfs_info(path, UIO_USERSPACE, namebuf,
|
||||||
UIO_SYSSPACE, mp, l);
|
UIO_SYSSPACE, mp, l);
|
||||||
if (error)
|
if (error)
|
||||||
|
|
Loading…
Reference in New Issue