From: Dan Carpenter Date: Tue, 17 Mar 2015 09:17:28 +0000 (+0300) Subject: serial: jsm: some off by one bugs X-Git-Tag: omap-for-v4.2/o2_dc~64^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a666b54adabc7dd40d754671a26996e6c985ae1b;p=pandora-kernel.git 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 Acked-by: Thadeu Lima de Souza Cascardo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed