aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorEric Sesterhenn / Snakebyte <[email protected]>2007-04-09 16:15:05 +0200
committerAvi Kivity <[email protected]>2007-05-03 10:52:29 +0300
commit3964994bb5ba85a3d8b54ae618f7be1cecce916d (patch)
treed093a2be86855e37abe7783e257eac4d9eb0ae73 /include/linux/debugobjects.h
parent5008fdf5b6a31240da060c0867d8f16f08ce2384 (diff)
KVM: Fix overflow bug in overflow detection code
The expression sp - 6 < sp where sp is a u16 is undefined in C since 'sp - 6' is promoted to int, and signed overflow is undefined in C. gcc 4.2 actually warns about it. Replace with a simpler test. Signed-off-by: Eric Sesterhenn <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions