summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-07-24 15:53:50 -0700
committerIan Romanick <idr@us.ibm.com>2007-07-24 15:53:50 -0700
commit75a68635a8f7b0d4fb31031832cc282a39a4a1e7 (patch)
tree34362ccea82b05d4135be0245c26073d32071f34 /linux-core
parent8e64d2ae862d5fa02e23c68db6b55393e1f86005 (diff)
Pass correct offset to xgi_find_pcie_virt.
The wrong offset was being passed to xgi_find_pcie_virt. This would cause an oops in addFlush2D.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/xgi_cmdlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/xgi_cmdlist.c b/linux-core/xgi_cmdlist.c
index e4f9dbcd..8ba8dc75 100644
--- a/linux-core/xgi_cmdlist.c
+++ b/linux-core/xgi_cmdlist.c
@@ -47,7 +47,7 @@ int xgi_cmdlist_initialize(struct xgi_info * info, size_t size)
return err;
}
- info->cmdring.ptr = xgi_find_pcie_virt(info, mem_alloc.offset);
+ info->cmdring.ptr = xgi_find_pcie_virt(info, mem_alloc.hw_offset);
info->cmdring.size = mem_alloc.size;
info->cmdring.ring_hw_base = mem_alloc.hw_addr;
info->cmdring.ring_gart_base = mem_alloc.offset;