git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a3ae84
)
USB: keyspan: add a sanity test on "len"
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 5 Apr 2013 05:43:20 +0000
(08:43 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 21:11:25 +0000
(14:11 -0700)
"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>
No differences found