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

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Am Dienstag 31 Juli 2007 schrieb Greg KH:
> > So I agree with the proposition of Oliver to add a buffer_size in the
> > usb_serial_driver structure.
> > This is very useful to prepare a buffer able to make bulk transfer.
> 
> I don't think it is necessary to add as it has not been a problem yet
> for any driver that I know of.

This is intended for use of a new driver. Of course a driver can
allocate its own buffer. But the purpose of the framework is to
make subdrivers easier to write. So if a larger buffer is needed
for some reason in the device's protocol, why not allocate it in the
framework?

> I think you are just doing something wrong in your driver :)

Currently yes. Either the API must be extended or the driver
changed. As this is unlikely to remain the only driver with that
problem, I propose extending the API.

	Regards
		Oliver

-------------------------------------------------------------------------
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.