Commit e3f8a74e authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge

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: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
parent b96229b5
...@@ -1302,8 +1302,8 @@ static void xen_flush_tlb_others(const struct cpumask *cpus, ...@@ -1302,8 +1302,8 @@ static void xen_flush_tlb_others(const struct cpumask *cpus,
} *args; } *args;
struct multicall_space mcs; struct multicall_space mcs;
BUG_ON(cpumask_empty(cpus)); if (cpumask_empty(cpus))
BUG_ON(!mm); return; /* nothing to do */
mcs = xen_mc_entry(sizeof(*args)); mcs = xen_mc_entry(sizeof(*args));
args = mcs.args; args = mcs.args;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment