From: Axel Lin Date: Sat, 4 May 2013 14:02:27 +0000 (+0800) Subject: regulator: ti-abb: Fix off-by-one valid range checking for abb->current_info_idx X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~26^2~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5cd8de2ce32e25e399f1d49d4876bf9450163a2;p=pandora-kernel.git regulator: ti-abb: Fix off-by-one valid range checking for abb->current_info_idx abb->current_info_idx is used as array subscript to access volt_table, thus the valid value range should be 0 ... desc->n_voltages - 1. Signed-off-by: Axel Lin Acked-by: Nishanth Menon Signed-off-by: Mark Brown --- Reading git-diff-tree failed