diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-04-05 05:43:20 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 21:11:25 (GMT) |
commit | 01a60e76b6392547ad3dca3ac05b9c886fa5da45 (patch) | |
tree | 5fe22932e6ad9f325e43a374d3cd5376117fd047 /drivers/usb/phy | |
parent | 6a3ae8412f9e9cee0e8647954f4f7f2c50664ca2 (diff) | |
download | linux-fsl-qoriq-01a60e76b6392547ad3dca3ac05b9c886fa5da45.tar.xz |
USB: keyspan: add a sanity test on "len"
"len" comes from the USB transfer and it's probably correct. The thing
is that we already have similar checks like:
if (data[i] >= serial->num_ports) {
So adding a sanity test here matches the rest of the code and is a good
idea.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/phy')
0 files changed, 0 insertions, 0 deletions