lkml.org 
[lkml]   [1999]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.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) {
/*
\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.023 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site