|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] kexec: Fix dodgy use of cpu_present_map p
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1274290699 -3600
# Node ID f71b641aa327b587886729958cc316ea13ba2181
# Parent 0b62b250f46ad068805d391c1b61514f7c561853
kexec: Fix dodgy use of cpu_present_map protecting percpu data access.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
xen/common/kexec.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 0b62b250f46a -r f71b641aa327 xen/common/kexec.c
--- a/xen/common/kexec.c Wed May 19 17:07:07 2010 +0100
+++ b/xen/common/kexec.c Wed May 19 18:38:19 2010 +0100
@@ -271,7 +271,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_online(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-unstable] kexec: Fix dodgy use of cpu_present_map protecting percpu data access.,
Xen patchbot-unstable <=
|
|
|
|
|