diff options
| author | Brian Feldman <green@FreeBSD.org> | 2000-03-15 03:28:53 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2000-03-15 03:28:53 +0000 |
| commit | 6261970fb03520ead336a3a891d52d9b51252a5f (patch) | |
| tree | f01811529e32494fea98b0676d25bf6b6e3166f4 | |
| parent | 0a7d464a504f6250db61ce48c53a89e631d59301 (diff) | |
Notes
| -rw-r--r-- | sys/dev/ppbus/lpt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index b83cc03474f4..a7f8dd97767e 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -695,6 +695,11 @@ lptread(dev_t dev, struct uio *uio, int ioflag) device_t ppbus = device_get_parent(lptdev); int error = 0, len; + if (sc->sc_flags & LP_BYPASS) { + /* we can't do reads in bypass mode */ + return (EPERM); + } + if ((error = ppb_1284_negociate(ppbus, PPB_NIBBLE, 0))) return (error); |
