soc/tegra: fuse: Fix index bug in get_process_id
This patch simply fixes a bug of referencing speedos[num] in every
for-loop iteration in get_process_id function.
Fixes: 0dc5a0d836
("soc/tegra: fuse: Add Tegra210 support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
Родитель
6c37cb9fa6
Коммит
b9ce9b0f83
|
@ -94,7 +94,7 @@ static int get_process_id(int value, const u32 *speedos, unsigned int num)
|
|||
unsigned int i;
|
||||
|
||||
for (i = 0; i < num; i++)
|
||||
if (value < speedos[num])
|
||||
if (value < speedos[i])
|
||||
return i;
|
||||
|
||||
return -EINVAL;
|
||||
|
|
Загрузка…
Ссылка в новой задаче