commit | 9353afbbfa7b10779a1aa108fcc23e32fd625990 | [log] [tgz] |
---|---|---|
author | Michal Nazarewicz <mina86@mina86.com> | Sat May 21 20:47:35 2016 +0200 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Tue Jun 21 11:11:31 2016 +0300 |
tree | bcb04f4d191a444798af2e2847e3096e8a31ce4e | |
parent | c662a31be755f5e315945e2c802c335eb8baddb8 [diff] |
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>