diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2009-08-27 14:36:24 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-23 06:46:18 -0700 |
commit | 99eb32db45061443ab7552b8fdceae68b90fde55 (patch) | |
tree | e42df1118729ba46166876ea5685d6216b540c2f /drivers/platform | |
parent | 9191eee7b8a0e18c07c06d6da502706805cab6d2 (diff) |
USB: xhci: Check URB's actual transfer buffer size.
Make sure that the amount of data the xHC says was transmitted is less
than or equal to the size of the requested transfer buffer. Before, if
the host controller erroneously reported that the number of bytes
untransferred was bigger than the buffer in the URB, urb->actual_length
could be set to a very large size.
Make sure urb->actual_length <= urb->transfer_buffer_length.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions