]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: musb: be careful with 64K+ transfer lengths (gadget side)
authorFelipe Balbi <felipe.balbi@nokia.com>
Sat, 21 Feb 2009 23:29:42 +0000 (15:29 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Feb 2009 22:40:51 +0000 (14:40 -0800)
commitc2c963217bb1e8d53622d41b9e9ae706d0d02c07
tree63f915a350231a13c8481fa7a86e25f16621483a
parent34f32c9701013ac5af89b82a6ae285e790b643e7
USB: musb: be careful with 64K+ transfer lengths (gadget side)

request->actual is an unsigned and we should use the same
variable type for fifo_count otherwise we might lose some
data if request->length >= 64kbytes.

[ dbrownell@users.sourceforge.net: fix compiler warning ]

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_gadget.c