diff options
| author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-02-20 09:08:33 +0000 |
|---|---|---|
| committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-02-20 09:08:33 +0000 |
| commit | 4ca7c740a6fdad925acf1dd67eefa6e5a4dd8b74 (patch) | |
| tree | 71f4657be1e8dec510937b360972d1f4a5cc2467 /sys/dev/ppbus | |
| parent | e903018832537c3994c91b1cd2fe591a9daba627 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ppbus')
| -rw-r--r-- | sys/dev/ppbus/pcfclock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ppbus/pcfclock.c b/sys/dev/ppbus/pcfclock.c index a52ff82420d6..9101638d83f0 100644 --- a/sys/dev/ppbus/pcfclock.c +++ b/sys/dev/ppbus/pcfclock.c @@ -312,6 +312,9 @@ pcfclock_read(dev_t dev, struct uio *uio, int ioflag) char buf[18]; int error = 0; + if (uio->uio_resid < 18) + return (ERANGE); + error = pcfclock_read_dev(dev, buf, PCFCLOCK_MAX_RETRIES); if (error) { |
