pcmcia/serial release of memory I/O twice
I am using a pcmcia modem (linux-2.6.3) and when I unplug the card the kernel warns:
"kernel: Trying to free nonexistent resource <000003e8-000003ef>"
The allocation of I/O address is done in:
module serial_cs:
simple_config:
pcmcia_request_io ---> allocate I/O address
setup_serial ... serial8250_request_port ---> doesn't allocate I/O
(UPF_RESOURCES is not set)The release of I/O address is done in:
module serial_cs:
serial_remove:
unregister_serial ... serial8250_release_port ---> release I/O
pcmcia_release_io ---> release again the I/OI suggest the patch bellow:
serial/8250.c renamed from serial/8250.c.ORIG +2 -0
@@ -1670,6 +1670,8 @@struct uart_8250_port *up = (struct uart_8250_port *)port;unsigned long start, offset =0 , size =0 ; +if (!(up->port.flags &UPF_RESOURCES )) +return ;if (up->port.type ==PORT_RSA ) { offset =UART_RSA_BASE << up->port.regshift; size =8 ;
Signature · 1 line
alonso