Skip to content

Commit 7ed37fc

Browse files
committed
i2o: Fix I/O space allocation copy/paste error
When i2o_iop_systab_set() allocates I/O port space, it assigns the base of the new I/O port region to sb->current_mem_base, not sb->current_io_base. This looks like a copy/paste error, because we do use current_io_base, but there's no other place that sets it. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 38dbfb5 commit 7ed37fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/message/i2o/iop.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
704704
NULL, NULL) >= 0) {
705705
c->io_alloc = 1;
706706
sb->current_io_size = resource_size(res);
707-
sb->current_mem_base = res->start;
707+
sb->current_io_base = res->start;
708708
osm_info("%s: allocated %llu bytes of PCI I/O at "
709709
"0x%016llX.\n", c->name,
710710
(unsigned long long)resource_size(res),

0 commit comments

Comments
 (0)