From: Felipe Balbi Date: Tue, 2 Jul 2013 07:50:15 +0000 (+0300) Subject: usb: clamp bInterval to allowed range X-Git-Tag: v3.12-rc1~186^2~151 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42189d854f174e7b29e0fdb4da9984ba63126a92;p=pandora-kernel.git usb: clamp bInterval to allowed range bInterval must be within the range 1 - 16 when running at High/Super speed, and within the range 1 - 255 when running at Full/Low speed. In order to catch drivers passing a too large bInterval on Super/High speed scenarios (thus overflowing urb->interval), let's clamp() the argument to the allowed ranges. Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed