commit | a666b54adabc7dd40d754671a26996e6c985ae1b | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Mar 17 12:17:28 2015 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 26 23:00:36 2015 +0100 |
tree | eafdaa1b060e9455efeda541e5feb783f996d764 | |
parent | 136debf707d2b3cd8e74d0fff8e29d11a78bf5c2 [diff] |
serial: jsm: some off by one bugs "brd->nasync" amd "brd->maxports" are the same. They hold the number of filled out channels in the brd->channels[] array. These tests should be ">=" instead of ">" so that we don't read one element past the end. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>