mirror of
https://github.com/opnsense/src.git
synced 2026-07-16 12:33:07 -04:00
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)
This commit is contained in:
parent
ca743e2595
commit
effbfcfdc6
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue