diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-29 18:52:20 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-10 17:31:00 (GMT) |
commit | 2471ec5895b2e3eeb55f4386a793123c8a5bf88a (patch) | |
tree | 62a1d542026c618064a512d036a56e52a81354ee /drivers/staging/android | |
parent | fc44de0097b6eb05e1feb63d045bdafb8120784d (diff) | |
download | linux-fsl-qoriq-2471ec5895b2e3eeb55f4386a793123c8a5bf88a.tar.xz |
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 <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
0 files changed, 0 insertions, 0 deletions