usb: dwc_otg: show warning on actual buffer length larger than
authorlyz <lyz@rock-chips.com>
Thu, 12 Feb 2015 02:16:32 +0000 (10:16 +0800)
committerlyz <lyz@rock-chips.com>
Thu, 12 Feb 2015 02:54:51 +0000 (10:54 +0800)
commitb10188f8f18d45a7d39e51d3a779876a63891581
tree1f0aacd146955d87a136ee85095aff03d970a3b3
parentf0be625fab127950c8d0080f5fdc16ef58ae42c0
usb: dwc_otg: show warning on actual buffer length larger than
transfer buffer length

In this case DWC_OTG controller will over-write memory space that
not belongs to this urb, it may cause kernel crash.

Signed-off-by: lyz <lyz@rock-chips.com>
drivers/usb/dwc_otg_310/dwc_otg_hcd_linux.c