From: Dan Carpenter Date: Thu, 29 Mar 2012 18:52:20 +0000 (+0300) Subject: Staging: rts5139: a couple off by one fixes X-Git-Tag: v3.5-rc1~145^2~229^2~248 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2471ec5895b2e3eeb55f4386a793123c8a5bf88a;p=pandora-kernel.git Staging: rts5139: a couple off by one fixes Inside the array we check ms_start_idx[seg_no + 1] so on the last round through we end up going past the end of the array. Also if we don't break out of the loop early then we are beyond the end of the array there as well. With this change, if we don't find what we are looking for, we end on the last element of the array. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed