--- linux-3.9.9-201.fc18.x86_64/drivers/gpu/drm/nouveau/nouveau_bo.c 2013-04-29 03:36:01.000000000 +0300 +++ linux-3.9.9-201.fc18.x86_64/drivers/gpu/drm/nouveau/nouveau_bo.c 2013-07-18 20:23:48.116008533 +0300 @@ -949,6 +949,10 @@ struct nouveau_mem *node = mem->mm_node; int ret; + if (WARN_ON(mem->mem_type != TTM_PL_VRAM && !node->pages)) { + return -EINVAL; + } + ret = nouveau_vm_get(nv_client(chan->cli)->vm, mem->num_pages << PAGE_SHIFT, node->page_shift, NV_MEM_ACCESS_RW, vma);