]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: gadget: fix DMA length for OUT transfer
authorMing Lei <tom.leiming@gmail.com>
Mon, 20 Sep 2010 07:32:04 +0000 (10:32 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 24 Sep 2010 18:05:01 +0000 (11:05 -0700)
commit4ec30a707cf025eeac14799e3e4323de27ca686d
treef59207633a930fc265772264634117da6f16c764
parent834a759d9dd356a20284bd7b9cf7982dc7fe0739
usb: musb: gadget: fix DMA length for OUT transfer

DMA length should not go beyond the availabe space of request buffer,
so fix it.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Anand Gadiyar <gadiyar@ti.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Anand Gadiyar <gadiyar@ti.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_gadget.c