diff options
Diffstat (limited to 'arch/powerpc/kernel/isa-bridge.c')
-rw-r--r-- | arch/powerpc/kernel/isa-bridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/isa-bridge.c b/arch/powerpc/kernel/isa-bridge.c index d73551da2ff1..289af348978d 100644 --- a/arch/powerpc/kernel/isa-bridge.c +++ b/arch/powerpc/kernel/isa-bridge.c | |||
@@ -80,13 +80,13 @@ static void __devinit pci_process_ISA_OF_ranges(struct device_node *isa_node, | |||
80 | * (size depending on dev->n_addr_cells) | 80 | * (size depending on dev->n_addr_cells) |
81 | * cell 5: the size of the range | 81 | * cell 5: the size of the range |
82 | */ | 82 | */ |
83 | if ((range->isa_addr.a_hi && ISA_SPACE_MASK) != ISA_SPACE_IO) { | 83 | if ((range->isa_addr.a_hi & ISA_SPACE_MASK) != ISA_SPACE_IO) { |
84 | range++; | 84 | range++; |
85 | rlen -= sizeof(struct isa_range); | 85 | rlen -= sizeof(struct isa_range); |
86 | if (rlen < sizeof(struct isa_range)) | 86 | if (rlen < sizeof(struct isa_range)) |
87 | goto inval_range; | 87 | goto inval_range; |
88 | } | 88 | } |
89 | if ((range->isa_addr.a_hi && ISA_SPACE_MASK) != ISA_SPACE_IO) | 89 | if ((range->isa_addr.a_hi & ISA_SPACE_MASK) != ISA_SPACE_IO) |
90 | goto inval_range; | 90 | goto inval_range; |
91 | 91 | ||
92 | isa_addr = range->isa_addr.a_lo; | 92 | isa_addr = range->isa_addr.a_lo; |