From: Dan Carpenter Date: Fri, 5 Apr 2013 05:43:20 +0000 (+0300) Subject: USB: keyspan: add a sanity test on "len" X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01a60e76b6392547ad3dca3ac05b9c886fa5da45;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed