diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2016-05-21 20:47:35 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-06-21 11:11:31 +0300 |
commit | 9353afbbfa7b10779a1aa108fcc23e32fd625990 (patch) | |
tree | bcb04f4d191a444798af2e2847e3096e8a31ce4e /drivers/usb/phy | |
parent | c662a31be755f5e315945e2c802c335eb8baddb8 (diff) | |
download | linux-9353afbbfa7b10779a1aa108fcc23e32fd625990.tar.bz2 |
usb: gadget: f_fs: buffer data from ‘oversized’ OUT requests
f_fs rounds up read(2) requests to a multiple of a max packet size
which means that host may provide more data than user has space for.
So far, the excess data has been silently ignored.
This introduces a buffer for a tail of such requests so that they are
returned on next read instead of being ignored.
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/phy')
0 files changed, 0 insertions, 0 deletions