]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i2o: Fix I/O space allocation copy/paste error
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 26 Feb 2014 18:25:56 +0000 (11:25 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 26 Feb 2014 18:56:09 +0000 (11:56 -0700)
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>
drivers/message/i2o/iop.c

index a8c08f332da04c596cf1ae3aa33c2a09f1a4f892..a8373d7aaef7423f3560b3c051b190fa5795d5c0 100644 (file)
@@ -704,7 +704,7 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
                                              NULL, NULL) >= 0) {
                        c->io_alloc = 1;
                        sb->current_io_size = resource_size(res);
-                       sb->current_mem_base = res->start;
+                       sb->current_io_base = res->start;
                        osm_info("%s: allocated %llu bytes of PCI I/O at "
                                "0x%016llX.\n", c->name,
                                (unsigned long long)resource_size(res),