]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: ehci: paranoia, reject large control transfers
authorDavid Brownell <david-b@pacbell.net>
Tue, 4 Mar 2008 23:11:07 +0000 (15:11 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:41 +0000 (21:16 -0700)
commit25b70a8665e9854504b9196c3098dadd37c721aa
treecf477b2546d7e5f547ec8866a5eed7536d27fb69
parent70a1c9e086c2e267fbc4533cb870f34999b531d6
USB: ehci: paranoia, reject large control transfers

Some EHCI fault paths with large control transfers aren't coded.  Avoid
problems by rejecting transfers that may need two qTDs (16+ KB).  This is
mostly paranoia; even 4 KB transfers are rare, and most HCDs use lower
limits (so it's unlikely anyone would ever try such a thing).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-hcd.c