Messages in this thread Patch in this message | | | Date | Sat, 11 Sep 1999 13:34:57 +0100 | From | Nick Holloway <> | Subject | 2.3.18 patch to fix "Trying to free nonexistent resource <02f8-02ff>" |
| |
I have a Thinkpad with a single serial port, and the Debian startup scripts attempt to configure the non-existant 2nd serial port. This leads to the message "Trying to free nonexistent resource <02f8-02ff>" being spat out.
Here is a patch for serial.c, so that set_serial_info doesn't attempt to free the resource that isn't allocated.
-- `O O' | Home: Nick.Holloway@alfie.demon.co.uk http://www.alfie.demon.co.uk/ // ^ \\ | Work: Nick.Holloway@parallax.co.uk --- linux-2.3/drivers/char/serial.c~ Sat Sep 11 13:00:53 1999 +++ linux-2.3/drivers/char/serial.c Sat Sep 11 13:01:41 1999 @@ -2006,7 +2006,7 @@ info->xmit_fifo_size = state->xmit_fifo_size = new_serial.xmit_fifo_size; - if (state->port) + if (state->type != PORT_UNKNOWN && state->port) release_region(state->port,8); if (change_port || change_irq) { /* | |