PM / devfreq: exynos-ppmu: ppmu_events array should not be NULL terminated
authorAxel Lin <axel.lin@ingics.com>
Fri, 21 Oct 2016 01:09:08 +0000 (09:09 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Sep 2017 05:33:29 +0000 (14:33 +0900)
commit81fa315f5fcb247346b76cd52702f9893a1508a3
tree305861a8f3904679779eb630412068d27a465127
parente7ec9c0c3bd8a9ab4acce2a758e0c02e429c5e21
PM / devfreq: exynos-ppmu: ppmu_events array should not be NULL terminated

The rest of the code uses ARRAY_SIZE to count the number of entries in
ppmu_events array. The NULL terminated entry makes ARRAY_SIZE return
off-by-one value.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/event/exynos-ppmu.c