summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-08-27 11:55:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-27 13:23:52 -0700
commitd979e9f9ecab04c1ecca741370e30a8a498893f5 (patch)
tree742a14ecb484009b22b6dee42db417fa2cd7ec02 /drivers/iio
parent039368901ad0a6476c7ecf0cfe4f84d735e30135 (diff)
USB: serial: fix potential stack buffer overflow
Make sure to verify the maximum number of endpoints per type to avoid writing beyond the end of a stack-allocated array. The current usb-serial implementation is limited to eight ports per interface but failed to verify that the number of endpoints of a certain type reported by a device did not exceed this limit. Cc: stable <stable@vger.kernel.org> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions