Re: [PATCH] usb: gadget: f_fs: Fix EFAULT generation for async read operations

2016-04-07 Thread Michal Nazarewicz
On Wed, Mar 30 2016, Lars-Peter Clausen wrote: > In the current implementation functionfs generates a EFAULT for async read > operations if the read buffer size is larger than the URB data size. Since > a application does not necessarily know how much data the host side is > going to send it typica

Re: [PATCH] usb: gadget: f_fs: Fix EFAULT generation for async read operations

2016-04-06 Thread Felipe Balbi
Hi Al, Lars-Peter Clausen writes: > In the current implementation functionfs generates a EFAULT for async read > operations if the read buffer size is larger than the URB data size. Since > a application does not necessarily know how much data the host side is > going to send it typically suppli

[PATCH] usb: gadget: f_fs: Fix EFAULT generation for async read operations

2016-03-30 Thread Lars-Peter Clausen
In the current implementation functionfs generates a EFAULT for async read operations if the read buffer size is larger than the URB data size. Since a application does not necessarily know how much data the host side is going to send it typically supplies a buffer larger than the actual data, whic