summaryrefslogtreecommitdiff
path: root/sys/dev/firmload.c
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2008-03-21 21:54:58 +0000
committerad <ad@NetBSD.org>2008-03-21 21:54:58 +0000
commita9ca7a3734751f09c9dc4e1f645cd528fd403e8c (patch)
treeff26aca94a1a611e6be984fcff411406b466507f /sys/dev/firmload.c
parentc743ad71591a886accf44c9e93c1ff677b45a41f (diff)
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.
Diffstat (limited to 'sys/dev/firmload.c')
-rw-r--r--sys/dev/firmload.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/firmload.c b/sys/dev/firmload.c
index 0e4f1732e2d..2b55941ab29 100644
--- a/sys/dev/firmload.c
+++ b/sys/dev/firmload.c
@@ -1,4 +1,4 @@
-/* $NetBSD: firmload.c,v 1.9 2007/12/08 19:29:41 pooka Exp $ */
+/* $NetBSD: firmload.c,v 1.10 2008/03/21 21:54:59 ad Exp $ */
/*-
* Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.9 2007/12/08 19:29:41 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.10 2008/03/21 21:54:59 ad Exp $");
/*
* The firmload API provides an interface for device drivers to access
@@ -269,14 +269,14 @@ firmware_open(const char *drvname, const char *imgname, firmware_handle_t *fhp)
error = VOP_GETATTR(vp, &va, kauth_cred_get());
if (error) {
VOP_UNLOCK(vp, 0);
- (void)vn_close(vp, FREAD, kauth_cred_get(), curlwp);
+ (void)vn_close(vp, FREAD, kauth_cred_get());
firmware_handle_free(fh);
return (error);
}
if (va.va_type != VREG) {
VOP_UNLOCK(vp, 0);
- (void)vn_close(vp, FREAD, kauth_cred_get(), curlwp);
+ (void)vn_close(vp, FREAD, kauth_cred_get());
firmware_handle_free(fh);
return (EINVAL);
}
@@ -302,7 +302,7 @@ firmware_close(firmware_handle_t fh)
{
int error;
- error = vn_close(fh->fh_vp, FREAD, kauth_cred_get(), curlwp);
+ error = vn_close(fh->fh_vp, FREAD, kauth_cred_get());
firmware_handle_free(fh);
return (error);
}