cpuidle: teo: Fix intervals[] array indexing bug
authorIkjoon Jang <ikjn@chromium.org>
Fri, 10 Jan 2020 17:47:12 +0000 (01:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:22:32 +0000 (08:22 +0100)
commit55b256b4c7e1c3de8926985bb7c256fe7ef40e14
tree68f6a5dfa3ae2dec18446b88d17e2980f5ed809a
parentaf2e7c923dabca32f1224b178198817536318c71
cpuidle: teo: Fix intervals[] array indexing bug

commit 57388a2ccb6c2f554fee39772886c69b796dde53 upstream.

Fix a simple bug in rotating array index.

Fixes: b26bf6ab716f ("cpuidle: New timer events oriented governor for tickless systems")
Signed-off-by: Ikjoon Jang <ikjn@chromium.org>
Cc: 5.1+ <stable@vger.kernel.org> # 5.1+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cpuidle/governors/teo.c