projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9690a6
)
percpu: fix percpu accessors to potentially !cpu_possible() cpus: pnpbios
author
Rusty Russell
<
[email protected]
>
Wed, 31 Dec 2008 23:42:14 +0000
(10:12 +1030)
committer
Rusty Russell
<
[email protected]
>
Wed, 31 Dec 2008 23:42:14 +0000
(10:12 +1030)
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 <
[email protected]
>
Signed-off-by: Mike Travis <
[email protected]
>
Acked-by: Ingo Molnar <
[email protected]
>
Cc: Adam Belay <
[email protected]
>
drivers/pnp/pnpbios/bioscalls.c
patch
|
blob
|
history
diff --git
a/drivers/pnp/pnpbios/bioscalls.c
b/drivers/pnp/pnpbios/bioscalls.c
index 7ff824496b397b236eda67c1a39b178b6ea22024..7e6b5a3b328177866ca2dbb15e7247510e95fd6e 100644
(file)
--- a/
drivers/pnp/pnpbios/bioscalls.c
+++ b/
drivers/pnp/pnpbios/bioscalls.c
@@
-481,7
+481,7
@@
void pnpbios_calls_init(union pnp_bios_install_struct *header)
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;