summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/drmP.h4
-rw-r--r--sys/dev/pci/if_san_obsd.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index c4111721e99..4825fd6321e 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: drmP.h,v 1.128 2011/06/02 18:22:00 weerd Exp $ */
+/* $OpenBSD: drmP.h,v 1.129 2012/04/11 17:42:53 mikeb Exp $ */
/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
* Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
*/
@@ -99,7 +99,7 @@
#endif
/* DRM_SUSER returns true if the user is superuser */
-#define DRM_SUSER(p) (suser(p, p->p_acflag) == 0)
+#define DRM_SUSER(p) (suser(p, 0) == 0)
#define DRM_MTRR_WC MDF_WRITECOMBINE
#define PAGE_ALIGN(addr) (((addr) + PAGE_MASK) & ~PAGE_MASK)
diff --git a/sys/dev/pci/if_san_obsd.c b/sys/dev/pci/if_san_obsd.c
index 8571f221e01..ca0c5891e91 100644
--- a/sys/dev/pci/if_san_obsd.c
+++ b/sys/dev/pci/if_san_obsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_san_obsd.c,v 1.12 2006/05/13 19:04:30 brad Exp $ */
+/* $OpenBSD: if_san_obsd.c,v 1.13 2012/04/11 17:42:53 mikeb Exp $ */
/*-
* Copyright (c) 2001-2004 Sangoma Technologies (SAN)
@@ -244,7 +244,7 @@ wanpipe_generic_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
goto ioctl_out;
case SIOCSIFTIMESLOT:
- if ((err = suser(p, p->p_acflag)) != 0)
+ if ((err = suser(p, 0)) != 0)
goto ioctl_out;
if (card->state != WAN_DISCONNECTED) {
log(LOG_INFO, "%s: Unable to change timeslot map!\n",
@@ -313,14 +313,14 @@ wanpipe_generic_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
case IF_PROTO_CISCO:
case IF_PROTO_PPP:
- if ((err = suser(p, p->p_acflag)) != 0)
+ if ((err = suser(p, 0)) != 0)
goto ioctl_out;
err = wp_lite_set_proto(ifp, (struct ifreq*)data);
break;
case IF_IFACE_T1:
case IF_IFACE_E1:
- if ((err = suser(p, p->p_acflag)) != 0)
+ if ((err = suser(p, 0)) != 0)
goto ioctl_out;
err = wp_lite_set_te1_cfg(ifp, (struct ifreq*)data);
break;