Re: [PATCH]correctly handling failed opens in usb-serial

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Novell
Message-ID <[email protected]>
Am Donnerstag, 29. März 2007 23:29 schrieb Greg KH:
> On Thu, Mar 29, 2007 at 10:15:00AM +0200, Oliver Neukum wrote:
> > Hi,
> > 
> > as recently discussed on lkml the tty layer does call close() if
> > an open() fails. Usb-serial does not handle this correctly. It does
> > handle the first open() failing by checking the open count, but if
> > a second open() fails, the close() will free the resources associated
> > with the first open.
> 
> Why can't we just fix the tty layer instead?

Do you want to audit every other serial driver to make sure cleanup isn't
deferred to close?

	Regards
		Oliver

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.