On Mon, 27 Jul 2009, Alan Stern wrote: > Alan: > > I just tried testing this under 2.6.31-rc4 plus > gregkh-all-2.6.31-rc4.patch, and the results were pretty nasty. All I > did was plug in my pl2303-based USB serial device and type "cat > /dev/ttyUSB0". > > In serial_open(), the call to tty_port_block_til_ready() returned > -512, whatever that means. The error path at the end of serial_open() > then failed because it tried to release some mutexes that had already > been released. Okay, I fixed that, and then tty_open() died trying to > access deallocated memory. -512 is -ERESTARTSYS, and that code is returned because ASYNC_INITIALIZED isn't set in port->flags. What's the story on that? Is something missing somewhere? And why does tty_open fail so dramatically? Is it connected with the way usb-serial messes around with port->port.count? Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html