dect
/
linux-2.6
Archived
13
0
Fork 0

drm/ttm: fix, avoid iomapping system memory

If the memory is not iomem we should not try to
ioremap it. Should fix :

https://bugs.freedesktop.org/show_bug.cgi?id=27822

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Tested-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Jerome Glisse 2010-05-05 11:02:44 +02:00 committed by Dave Airlie
parent a1e9ada3e1
commit 9e51159c14
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ int ttm_mem_reg_ioremap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem,
*virtual = NULL;
ret = ttm_mem_io_reserve(bdev, mem);
if (ret)
if (ret || !mem->bus.is_iomem)
return ret;
if (mem->bus.addr) {