summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/spigot.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa/spigot.c')
-rw-r--r--sys/i386/isa/spigot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/spigot.c b/sys/i386/isa/spigot.c
index e0f33a7..f767d7f 100644
--- a/sys/i386/isa/spigot.c
+++ b/sys/i386/isa/spigot.c
@@ -166,7 +166,7 @@ struct spigot_softc *ss = (struct spigot_softc *)&spigot_softc[UNIT(dev)];
* require sufficient privilege soon and nothing much can be done
* without them.
*/
- error = suser(p->p_ucred, &p->p_acflag);
+ error = suser(p);
if (error != 0)
return error;
if (securelevel > 0)
@@ -222,7 +222,7 @@ struct spigot_info *info;
break;
case SPIGOT_IOPL_ON: /* allow access to the IO PAGE */
#if !defined(SPIGOT_UNSECURE)
- error = suser(p->p_ucred, &p->p_acflag);
+ error = suser(p);
if (error != 0)
return error;
if (securelevel > 0)
OpenPOWER on IntegriCloud