]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:32 +0000 (14:03 +0100)
commitbadf751a785d624f2ab326f7d00d11a5a78842dc
treee75b3588f08b6f953372308ea98fa7f3d5a80190
parent501a16c1ddb23beb27fa31a98c8054e34f9ea4b9
perf kvm: Fix debug assertion

[ Upstream commit 27e711257902475097dea3f79cbdf241fe37ec00 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/builtin-kvm.c