* [PATCH 2/3] percpu: fix percpu accessors to potentially !cpu_possible() cpus: pnpbios
@ 2008-11-21 10:40 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2008-11-21 10:40 UTC (permalink / raw)
To: Adam Belay
Cc: Mike Travis, Ingo Molnar, linux-kernel, Ingo Molnar, Adam Belay
Impact: CPU iterator bugfixes
Percpu areas are only allocated for possible cpus. In general, you
shouldn't access random cpu's percpu areas.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Adam Belay <ambx1@neo.rr.com>
---
drivers/pnp/pnpbios/bioscalls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -r
--- test-compile.orig/drivers/pnp/pnpbios/bioscalls.c
+++ test-compile/drivers/pnp/pnpbios/bioscalls.c
@@ -481,7 +481,7 @@ void pnpbios_calls_init(union pnp_bios_i
set_base(bad_bios_desc, __va((unsigned long)0x40 << 4));
_set_limit((char *)&bad_bios_desc, 4095 - (0x40 << 4));
- for (i = 0; i < NR_CPUS; i++) {
+ for_each_possible_cpu(i) {
struct desc_struct *gdt = get_cpu_gdt_table(i);
if (!gdt)
continue;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-21 10:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 10:40 [PATCH 2/3] percpu: fix percpu accessors to potentially !cpu_possible() cpus: pnpbios Rusty Russell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.