Re: [patch 2/2 v2] USB: keyspan: add a sanity test on "len"

2013-04-05 Thread walter harms
Am 05.04.2013 07:43, schrieb Dan Carpenter: > "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

[patch 2/2 v2] USB: keyspan: add a sanity test on "len"

2013-04-04 Thread Dan Carpenter
"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 --- v2: No change. Rebased