diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-03-04 20:36:57 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-04-08 17:25:46 -0400 |
commit | e3f8a74e3a884b91a4390c66ed8175ef74db7067 (patch) | |
tree | c0a891e10c9ab2ab3726228a8cbc4c868a997737 /arch/x86 | |
parent | b96229b50d71c548302053c244b89572a5264c0b (diff) |
xen/mmu: weaken flush_tlb_other test
Impact: fixes crashing bug
There's no particular problem with getting an empty cpu mask,
so just shortcut-return if we get one.
Avoids crash reported by Christophe Saout <christophe@saout.de>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/xen/mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 4db24e1393a2..7ef880c51dca 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -1302,8 +1302,8 @@ static void xen_flush_tlb_others(const struct cpumask *cpus, | |||
1302 | } *args; | 1302 | } *args; |
1303 | struct multicall_space mcs; | 1303 | struct multicall_space mcs; |
1304 | 1304 | ||
1305 | BUG_ON(cpumask_empty(cpus)); | 1305 | if (cpumask_empty(cpus)) |
1306 | BUG_ON(!mm); | 1306 | return; /* nothing to do */ |
1307 | 1307 | ||
1308 | mcs = xen_mc_entry(sizeof(*args)); | 1308 | mcs = xen_mc_entry(sizeof(*args)); |
1309 | args = mcs.args; | 1309 | args = mcs.args; |