diff options
author | Felipe Balbi <balbi@ti.com> | 2013-07-02 10:50:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-25 11:49:30 -0700 |
commit | 42189d854f174e7b29e0fdb4da9984ba63126a92 (patch) | |
tree | a8f825986d951260305433938aa1e431df4fa2d2 /drivers/watchdog/ixp4xx_wdt.c | |
parent | afb8aae89890e65bd4b828de38bd430d4f31caa8 (diff) | |
download | linux-stable-42189d854f174e7b29e0fdb4da9984ba63126a92.tar.gz linux-stable-42189d854f174e7b29e0fdb4da9984ba63126a92.tar.bz2 linux-stable-42189d854f174e7b29e0fdb4da9984ba63126a92.zip |
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 <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/watchdog/ixp4xx_wdt.c')
0 files changed, 0 insertions, 0 deletions