aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/upd64083.h
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2009-02-21 18:31:23 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-02-27 17:40:51 -0500
commit3ecdb9acf343bbcf2bb2c287dc524ab709cfad7e (patch)
tree0e6bb1dada7b9793c7f95cff9498a3283fade244 /include/media/upd64083.h
parent51d9f3e100a8f8cc2be89d5f13d37de61e2da38a (diff)
USB: musb: be careful with 64K+ transfer lengths, host side
Feeding 32-bit length cast down to 'u16' to min() to calculate the FIFO count in musb_host_tx() risks sending a short packet prematurely for transfer sizes over 64 KB. Similarly, although data transfer size shouldn't exceed 65535 bytes for the control endpoint, making musb_h_ep0_continue() more robust WRT URBs with possibly oversized buffer will not hurt either... Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/media/upd64083.h')
0 files changed, 0 insertions, 0 deletions