Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
arch/x86/xen/mmu.c
··· 1293 1293 } *args; 1294 1294 struct multicall_space mcs; 1295 1295 1296 - BUG_ON(cpumask_empty(cpus)); 1297 - BUG_ON(!mm); 1296 + if (cpumask_empty(cpus)) 1297 + return; /* nothing to do */ 1298 1298 1299 1299 mcs = xen_mc_entry(sizeof(*args)); 1300 1300 args = mcs.args;