]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: f_fs: printk error when excess data is dropped on read
authorMichal Nazarewicz <mina86@mina86.com>
Sat, 21 May 2016 18:47:34 +0000 (20:47 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 08:11:23 +0000 (11:11 +0300)
commitc662a31be755f5e315945e2c802c335eb8baddb8
tree976ed4cb41a71e6f56d6f409e230892734743020
parent7c8b9c318490afe3e8bb244ef7e488265871aba7
usb: gadget: f_fs: printk error when excess data is dropped on read

Add a pr_err when host sent more data then the size of the buffer user
space gave us.  This may happen on UDCs which require OUT requests to
be aligned to max packet size.  The patch includes a description of the
situation.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_fs.c