Module Name:    src
Committed By:   christos
Date:           Tue Sep 21 14:41:28 UTC 2021

Modified Files:
        src/sys/dev/ic: ath.c

Log Message:
don't opencode kauth_cred_get()


To generate a diff of this commit:
cvs rdiff -u -r1.136 -r1.137 src/sys/dev/ic/ath.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/ath.c
diff -u src/sys/dev/ic/ath.c:1.136 src/sys/dev/ic/ath.c:1.137
--- src/sys/dev/ic/ath.c:1.136	Mon Aug  9 16:49:10 2021
+++ src/sys/dev/ic/ath.c	Tue Sep 21 10:41:28 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ath.c,v 1.136 2021/08/09 20:49:10 andvar Exp $	*/
+/*	$NetBSD: ath.c,v 1.137 2021/09/21 14:41:28 christos Exp $	*/
 
 /*-
  * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -41,7 +41,7 @@
 __FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.104 2005/09/16 10:09:23 ru Exp $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.136 2021/08/09 20:49:10 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.137 2021/09/21 14:41:28 christos Exp $");
 #endif
 
 /*
@@ -5426,7 +5426,7 @@ ath_ioctl(struct ifnet *ifp, u_long cmd,
 	    }
 
 	case SIOCGATHDIAG:
-		error = kauth_authorize_network(curlwp->l_cred,
+		error = kauth_authorize_network(kauth_cred_get(),
 		    KAUTH_NETWORK_INTERFACE,
 		    KAUTH_REQ_NETWORK_INTERFACE_SETPRIV, ifp, KAUTH_ARG(cmd),
 		    NULL);

Reply via email to