|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-4.0-testing] kexec: Fix dodgy use of cpu_present_ma
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1274298548 -3600
# Node ID 43661ec746246b68f3417e8ce367932185847f37
# Parent 6c99e09a7cd59af4bfeee738d2f4f475aceb6107
kexec: Fix dodgy use of cpu_present_map protecting percpu data access.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset: 21432:f71b641aa327
xen-unstable date: Wed May 19 18:38:19 2010 +0100
---
xen/common/kexec.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 6c99e09a7cd5 -r 43661ec74624 xen/common/kexec.c
--- a/xen/common/kexec.c Wed May 19 12:39:30 2010 +0100
+++ b/xen/common/kexec.c Wed May 19 20:49:08 2010 +0100
@@ -177,7 +177,7 @@ static int kexec_get_cpu(xen_kexec_range
int nr = range->nr;
int nr_bytes = 0;
- if ( nr < 0 || nr >= num_present_cpus() )
+ if ( nr < 0 || nr >= NR_CPUS || !cpu_present(nr) )
return -EINVAL;
nr_bytes += sizeof_note("CORE", sizeof(ELF_Prstatus));
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-4.0-testing] kexec: Fix dodgy use of cpu_present_map protecting percpu data access.,
Xen patchbot-4.0-testing <=
|
|
|
|
|