blktrace: fix off-by-one bug
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 24 Mar 2009 08:05:27 +0000 (16:05 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 31 Mar 2009 15:27:18 +0000 (17:27 +0200)
commiteb08f8eb0673d9c1e62b69ad1b41593e73c40467
tree8243201d6f98e5e502fd0688c632e9650c1f973d
parent5554720482a631702146a959db22fe417740e0a6
blktrace: fix off-by-one bug

'what' is used as the index of array what2act, so it can't >= the array size.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/blktrace.c