MLK-21137 perf: ddr-perf: correct the range of the For loop
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Wed, 13 Mar 2019 06:56:56 +0000 (14:56 +0800)
committerJoakim Zhang <qiangqing.zhang@nxp.com>
Tue, 14 May 2019 01:30:02 +0000 (09:30 +0800)
commit870b7ba5f534e7ba0565230fcc8482ab5d64ce8d
tree9a363cd7a408bd92fa0fe462b4b7dccccf2c510b
parent4cce7ffbb7c3065b8c91450581c772e3e2aed96a
MLK-21137 perf: ddr-perf: correct the range of the For loop

The variable "total_event" should be 4 when we open 4 perf event, then
active_events[4] will out of range.

Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
drivers/perf/ddr-perf.c