On Wed, Jun 15, 2005 at 05:00:21PM +0530, [EMAIL PROTECTED] wrote: > > Hi, > > Please find the patch below as per previous discussion for Linux Kernel > version: linux-2.6.11.10 > > > > --- linux-2.6.11.10/drivers/usb/serial/usb-serial.c.orig > 2005-06-15 15:56:48.691888024 +0530
Hm, your patch is line-wrapped and all of the tabs are converted to spaces. It will not apply, sorry. > +++ linux-2.6.11.10/drivers/usb/serial/usb-serial.c 2005-06-15 > 15:59:58.035103480 +0530 > @@ -546,11 +546,15 @@ static void serial_close(struct tty_stru > /* only call the device specific close if this > * port is being closed by the last owner */ > port->serial->type->close(port, filp); > - > - if (port->tty) { > - if (port->tty->driver_data) > - port->tty->driver_data = NULL; > - port->tty = NULL; > + /* An open call might be pending while close is in > progress. > + Must check port->open_count before freeing tty */ > + if (port->open_count == 0) > + { Any reason you changed the coding style here? Take a look at Documentation/CodingStyle for more details as to the proper kernel style. thanks, greg k-h ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel