diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-07-27 17:04:56 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-07-27 17:04:56 +0000 |
| commit | 7c89f162bcb645d2fdb234883fb689ed896077a2 (patch) | |
| tree | 9fe71cfe1133914703f5c502a7c60529cda9fff5 /sys/dev/md/md.c | |
| parent | 1b6c609507d637f33e5bc22dfbd6074ca23dc91e (diff) | |
Notes
Diffstat (limited to 'sys/dev/md/md.c')
| -rw-r--r-- | sys/dev/md/md.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 57eed2e689de..4898762d9c71 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -840,13 +840,13 @@ mdcreate_vnode(struct md_ioctl *mdio, struct thread *td) flags = FREAD|FWRITE; NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, mdio->md_file, td); - error = vn_open(&nd, &flags, 0); + error = vn_open(&nd, &flags, 0, -1); if (error) { if (error != EACCES && error != EPERM && error != EROFS) return (error); flags &= ~FWRITE; NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, mdio->md_file, td); - error = vn_open(&nd, &flags, 0); + error = vn_open(&nd, &flags, 0, -1); if (error) return (error); } |
