Re: usb-serial.c question - potential Memory fault

Greg KH <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tue, Jul 31, 2007 at 07:49:34AM +0200, Alain Degreffe wrote:
> Greg,
> 
> You are right ( of course ), but using the buffer given by the usb-serial
> seems to bo logic as I said.
> By this way I don't create unnecessary buffer. But in bulk transfer, the
> buffer_size can be greater than
> The value given by the endpoint. The usb lowlevel will split the bulk
> tranfsert. 
> So, why this limit in the usb-serial.c ?

It is there just because it has always been that way, no specific reason
at all.

> For the moment , I kfree the buffer In the my open function and create
> a new one bigger.   

That can work too, and is fine if you want to do that.

thanks,

greg k-h

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[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.