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 | |
| parent | 1b6c609507d637f33e5bc22dfbd6074ca23dc91e (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/md/md.c | 4 | ||||
| -rw-r--r-- | sys/dev/raidframe/rf_freebsdkintf.c | 2 |
2 files changed, 3 insertions, 3 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); } diff --git a/sys/dev/raidframe/rf_freebsdkintf.c b/sys/dev/raidframe/rf_freebsdkintf.c index d58bf26b0899..d391fcd7204d 100644 --- a/sys/dev/raidframe/rf_freebsdkintf.c +++ b/sys/dev/raidframe/rf_freebsdkintf.c @@ -1727,7 +1727,7 @@ raidlookup(path, td, vpp) NDINIT(nd, LOOKUP, FOLLOW, UIO_SYSSPACE, path, curthread); flags = FREAD | FWRITE; - if ((error = vn_open(nd, &flags, 0)) != 0) { + if ((error = vn_open(nd, &flags, 0, -1)) != 0) { rf_printf(2, "RAIDframe: vn_open returned %d\n", error); goto end1; } |
