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--/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="serial.patch"
--- 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) { /*
--/04w6evG8XlLl3ft--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/