...
Okay, from that part (above), the problem is obvious:
in that the "MCT U232 converter now disconnected" appears,
and then we continue to try and call the driver's method.. Oops!
The hack patch below "fixes" this, but it really just hides whatever
the real problem underneath was:
Signed-off-by: Mark Lord <mlord@pobox.com>
---
--- linux/include/linux/usb/serial.h.orig 2007-03-12 12:18:48.000000000 -0400
+++ linux/include/linux/usb/serial.h 2007-03-12 12:18:23.000000000 -0400
@@ -99,11 +99,19 @@
/* get and set the port private data pointer helper functions */
static inline void *usb_get_serial_port_data (struct usb_serial_port *port)
{
+ if (!port) {
+ WARN_ON(1);
+ return NULL;
+ }
return dev_get_drvdata(&port->dev);
}
static inline void usb_set_serial_port_data (struct usb_serial_port *port, void *data)
{
+ if (!port) {
+ WARN_ON(1);
+ return;
+ }
dev_set_drvdata(&port->dev, data);
}
-