diff options
author | 2009-02-21 15:31:23 -0800 | |
---|---|---|
committer | 2009-02-27 14:40:51 -0800 | |
commit | 3ecdb9acf343bbcf2bb2c287dc524ab709cfad7e (patch) | |
tree | 0e6bb1dada7b9793c7f95cff9498a3283fade244 /lib/debugobjects.c | |
parent | USB: musb: fix data toggle saving with shared FIFO (diff) | |
download | wireguard-linux-3ecdb9acf343bbcf2bb2c287dc524ab709cfad7e.tar.xz wireguard-linux-3ecdb9acf343bbcf2bb2c287dc524ab709cfad7e.zip |
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 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions