1
0
Fork 0

KVM: x86: fix incorrect comparison in trace event

[ Upstream commit 147f1a1fe5 ]

The "u" field in the event has three states, -1/0/1.  Using u8 however means that
comparison with -1 will always fail, so change to signed char.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
5.4-rM2-2.2.x-imx-squashed
Paolo Bonzini 2020-02-13 18:24:48 +01:00 committed by Greg Kroah-Hartman
parent a4d17715a8
commit d1da396447
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ TRACE_EVENT(
/* These depend on page entry type, so compute them now. */
__field(bool, r)
__field(bool, x)
__field(u8, u)
__field(signed char, u)
),
TP_fast_assign(