diff options
| author | christos <christos@NetBSD.org> | 2021-09-21 14:49:01 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2021-09-21 14:49:01 +0000 |
| commit | afe4b63deebbd88e3759442d88c692f2d98ffb37 (patch) | |
| tree | eb866df81ffc9b9da754252b5cce76bf7e123890 /sys/external/isc | |
| parent | 9799e8172592b6a9975809e57ecf44e532a023cf (diff) | |
don't opencode kauth_cred_get()
Diffstat (limited to 'sys/external/isc')
| -rw-r--r-- | sys/external/isc/atheros_hal/ic/ah_osdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/external/isc/atheros_hal/ic/ah_osdep.c b/sys/external/isc/atheros_hal/ic/ah_osdep.c index 919506a2c04..91dce966b04 100644 --- a/sys/external/isc/atheros_hal/ic/ah_osdep.c +++ b/sys/external/isc/atheros_hal/ic/ah_osdep.c @@ -26,11 +26,11 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGES. * - * $Id: ah_osdep.c,v 1.6 2012/04/11 13:48:11 nakayama Exp $ + * $Id: ah_osdep.c,v 1.7 2021/09/21 14:51:28 christos Exp $ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ah_osdep.c,v 1.6 2012/04/11 13:48:11 nakayama Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ah_osdep.c,v 1.7 2021/09/21 14:51:28 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_athhal.h" @@ -211,7 +211,7 @@ ath_hal_setlogging(int enable) int error; if (enable) { - error = kauth_authorize_network(curlwp->l_cred, + error = kauth_authorize_network(kauth_cred_get(), KAUTH_NETWORK_INTERFACE, KAUTH_REQ_NETWORK_INTERFACE_SETPRIV, NULL, NULL, NULL); if (error == 0) { |
