diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index c8d43460e4a8..3305eeeb7172 100644 --- a/sys/dev/usb/umodem.c +++ b/sys/dev/usb/umodem.c @@ -598,7 +598,7 @@ umodemopen(dev, flag, mode, p) if (ISSET(tp->t_state, TS_ISOPEN) && ISSET(tp->t_state, TS_XCLUDE) && - p->p_ucred->cr_uid != 0) + suser(p)) return (EBUSY); /*