diff options
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_ext.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/spigot.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_ext.c b/sys/i386/isa/pcvt/pcvt_ext.c index 9e3cc44..8e72849 100644 --- a/sys/i386/isa/pcvt/pcvt_ext.c +++ b/sys/i386/isa/pcvt/pcvt_ext.c @@ -2619,7 +2619,7 @@ usl_vt_ioctl(dev_t dev, int cmd, caddr_t data, int flag, struct thread *td) error = suser_td(td); if (error != 0) return (error); - error = securelevel_gt(p->p_ucred, 0); + error = securelevel_gt(td->td_ucred, 0); if (error != 0) return (error); diff --git a/sys/i386/isa/spigot.c b/sys/i386/isa/spigot.c index 23cbd3c..cc51b18 100644 --- a/sys/i386/isa/spigot.c +++ b/sys/i386/isa/spigot.c @@ -178,7 +178,7 @@ struct spigot_softc *ss = (struct spigot_softc *)&spigot_softc[UNIT(dev)]; error = suser_td(td); if (error != 0) return error; - error = securelevel_gt(td->td_proc->p_ucred, 0); + error = securelevel_gt(td->td_ucred, 0); if (error != 0) return error; #endif @@ -235,7 +235,7 @@ struct spigot_info *info; error = suser_td(td); if (error != 0) return error; - error = securelevel_gt(td->td_proc->p_ucred, 0); + error = securelevel_gt(td->td_ucred, 0); if (error) return error; #endif |