]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf kvm: Fix debug assertion
authorIan Rogers <irogers@google.com>
Sat, 22 Nov 2025 08:19:13 +0000 (00:19 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 3 Dec 2025 19:07:19 +0000 (11:07 -0800)
commit27e711257902475097dea3f79cbdf241fe37ec00
tree1cf355afedde93420fa475fdd34e252b71002670
parent492689ba72d0391e2c263b159a17beeea7b130a8
perf kvm: Fix debug assertion

There are 2 slots left for kvm_add_default_arch_event, fix the
assertion so that debug builds don't fail the assert and to agree with
the comment.

Fixes: 45ff39f6e70aa55d0 ("perf tools kvm: Fix the potential out of range memory access issue")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-kvm.c