aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang-test.cpp
diff options
context:
space:
mode:
authorHeyi Guo <[email protected]>2019-08-27 12:26:50 +0100
committerWill Deacon <[email protected]>2019-08-27 16:19:56 +0100
commitd4a8061a7c5f7c27a2dc002ee4cb89b3e6637e44 (patch)
tree4445c51f62bbf92da124109b3700a8020fd6dab2 /tools/perf/util/c++/clang-test.cpp
parent2a1a3fa0f29270583f0e6e3100d609e09697add1 (diff)
KVM: arm/arm64: vgic: Fix potential deadlock when ap_list is long
If the ap_list is longer than 256 entries, merge_final() in list_sort() will call the comparison callback with the same element twice, causing a deadlock in vgic_irq_cmp(). Fix it by returning early when irqa == irqb. Cc: [email protected] # 4.7+ Fixes: 8e4447457965 ("KVM: arm/arm64: vgic-new: Add IRQ sorting") Signed-off-by: Zenghui Yu <[email protected]> Signed-off-by: Heyi Guo <[email protected]> [maz: massaged commit log and patch, added Fixes and Cc-stable] Signed-off-by: Marc Zyngier <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions