summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/gsc.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-12-30 20:42:47 +0000
committerjoerg <joerg@FreeBSD.org>1996-12-30 20:42:47 +0000
commit4aa5c59642604da190cef3bb9ae8bb93cac351f6 (patch)
treefe5192aa53d80441f1fe3d6ed85312ed910f1fd6 /sys/i386/isa/gsc.c
parentbbb45ada41f0ef3ffe8b4d67d2bccacd49b250a7 (diff)
downloadFreeBSD-src-4aa5c59642604da190cef3bb9ae8bb93cac351f6.zip
FreeBSD-src-4aa5c59642604da190cef3bb9ae8bb93cac351f6.tar.gz
Apparently, someone changed the gsc driver to allocate one big buffer
at device attach time, instead of allocating and freeing buffers as necessary. But he or she forgot to remove the line that invalidated the buffer when the device is closed. Therefore, after using the device for the first time, the buffer was incorrectly invalidated and that caused a page fault on the second, and subsequent uses. Closes PR # kern/2319: Using Genius GS-4500 scanner... Submitted by: jmrueda@diatel.upm.es (Javier Martmn Rueda)
Diffstat (limited to 'sys/i386/isa/gsc.c')
-rw-r--r--sys/i386/isa/gsc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/i386/isa/gsc.c b/sys/i386/isa/gsc.c
index 8e98fc2..ff9f775 100644
--- a/sys/i386/isa/gsc.c
+++ b/sys/i386/isa/gsc.c
@@ -635,7 +635,6 @@ gscclose (dev_t dev, int flags, int fmt, struct proc *p)
outb(scu->ctrl, scu->ctrl_byte & ~GSC_POWER_ON);
- scu->sbuf.base = NULL;
scu->sbuf.size = INVALID;
scu->sbuf.poi = INVALID;
OpenPOWER on IntegriCloud