Commit f9517e63 authored by Jerome Glisse's avatar Jerome Glisse Committed by Dave Airlie
Browse files

drm/ttm: test for dma_address array allocation failure

Signed-off-by: default avatarJerome Glisse <>
Reviewed-by: default avatarKonrad Rzeszutek Wilk <>
Reviewed-by: default avatarThomas Hellstrom <>
parent 5e265680
......@@ -320,7 +320,7 @@ struct ttm_tt *ttm_tt_create(struct ttm_bo_device *bdev, unsigned long size,
ttm->dummy_read_page = dummy_read_page;
if (!ttm->pages) {
if (!ttm->pages || !ttm->dma_address) {
printk(KERN_ERR TTM_PFX "Failed allocating page table\n");
return NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment