diff options
| author | ad <ad@NetBSD.org> | 2006-07-21 16:48:45 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2006-07-21 16:48:45 +0000 |
| commit | 3029ac48c7008a9c5766a90a8ecd56bfa9df470a (patch) | |
| tree | 64095aaeca7bfa37d2bc81833cb9a92422d31320 /sys/dev/kloader.c | |
| parent | 888ea5adc517ed139e7e2be411b3263fa58ff0db (diff) | |
- Use the LWP cached credentials where sane.
- Minor cosmetic changes.
Diffstat (limited to 'sys/dev/kloader.c')
| -rw-r--r-- | sys/dev/kloader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/kloader.c b/sys/dev/kloader.c index 9257b7a945f..c3a2cb7f402 100644 --- a/sys/dev/kloader.c +++ b/sys/dev/kloader.c @@ -1,4 +1,4 @@ -/* $NetBSD: kloader.c,v 1.10 2006/05/14 21:42:26 elad Exp $ */ +/* $NetBSD: kloader.c,v 1.11 2006/07/21 16:48:47 ad Exp $ */ /*- * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.10 2006/05/14 21:42:26 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.11 2006/07/21 16:48:47 ad Exp $"); #include "debug_kloader.h" @@ -624,7 +624,7 @@ kloader_close() struct vnode *vp = kloader.vp; VOP_UNLOCK(vp, 0); - vn_close(vp, FREAD, l->l_proc->p_cred, l); + vn_close(vp, FREAD, l->l_cred, l); } int @@ -636,7 +636,7 @@ kloader_read(size_t ofs, size_t size, void *buf) int error; error = vn_rdwr(UIO_READ, vp, buf, size, ofs, UIO_SYSSPACE, - IO_NODELOCKED | IO_SYNC, l->l_proc->p_cred, &resid, NULL); + IO_NODELOCKED | IO_SYNC, l->l_cred, &resid, NULL); if (error) PRINTF("read error.\n"); |
