Re: Re: 2.6.0-test5 usbserial oops

From: Greg KH
Date: Thu Sep 11 2003 - 12:58:58 EST


On Thu, Sep 11, 2003 at 07:45:15PM +0200, Jindrich Makovicka wrote:
> Hello,
>
> I have a similar problem, here is the syslog with debug=1 set for visor
> and usbserial. This occured after using a ppp connection. I am running
> 2.4.0test5 with v4l2 patch from http://bytesex.org/v4l/.

Hm, can you try the following patch and let me know if it fixes the
problem for you?

thanks,

greg k-h

--- a/drivers/usb/serial/usb-serial.c Wed Sep 3 08:47:22 2003
+++ b/drivers/usb/serial/usb-serial.c Thu Sep 11 11:01:55 2003
@@ -871,8 +871,10 @@

/* the ports are cleaned up and released in port_release() */
for (i = 0; i < serial->num_ports; ++i)
- if (serial->port[i]->dev.parent != NULL)
+ if (serial->port[i]->dev.parent != NULL) {
device_unregister(&serial->port[i]->dev);
+ serial->port[i] = NULL;
+ }

/* If this is a "fake" port, we have to clean it up here, as it will
* not get cleaned up in port_release() as it was never registered with
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/