From: Sarah Sharp Date: Thu, 27 Aug 2009 21:36:24 +0000 (-0700) Subject: USB: xhci: Check URB's actual transfer buffer size. X-Git-Tag: v2.6.32-rc1~174^2~121 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99eb32db45061443ab7552b8fdceae68b90fde55;p=pandora-kernel.git 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed