clk: versatile: off by one in clk_sp810_timerclken_of_get()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Jul 2015 10:17:06 +0000 (13:17 +0300)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 29 Jul 2015 18:25:23 +0000 (11:25 -0700)
commit3294bee87091be5f179474f6c39d1d87769635e2
tree4d2cdb345ce30074c25a6cc0c1f6b019535e880d
parente323d56eb06b266b77c2b430cb5f1977ba549e03
clk: versatile: off by one in clk_sp810_timerclken_of_get()

The ">" should be ">=" or we end up reading beyond the end of the array.

Fixes: 6e973d2c4385 ('clk: vexpress: Add separate SP810 driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/versatile/clk-sp810.c