Skip to content

Commit

Permalink
xen/mmu: weaken flush_tlb_other test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Fitzhardinge committed Mar 30, 2009
1 parent 4185f35 commit 8de07bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/xen/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,8 +1293,8 @@ static void xen_flush_tlb_others(const struct cpumask *cpus,
} *args;
struct multicall_space mcs;

BUG_ON(cpumask_empty(cpus));
BUG_ON(!mm);
if (cpumask_empty(cpus))
return; /* nothing to do */

mcs = xen_mc_entry(sizeof(*args));
args = mcs.args;
Expand Down

0 comments on commit 8de07bb

Please sign in to comment.