Displaying 1 result from an estimated 1 matches for "nouveau_bo_ualloc".
Did you mean:
nouveau_bo_alloc
2009 Dec 24
1
[PATCH] nouveau: when nouveau_bo_map fails you expect it to not be mapped
...if (bo->map) {
+ ret = -EINVAL;
+ goto out;
+ }
+
if (!nouveau_bo_allocated(nvbo)) {
if (nvbo->flags & (NOUVEAU_BO_VRAM | NOUVEAU_BO_GART)) {
ret = nouveau_bo_kalloc(nvbo, NULL);
if (ret)
- return ret;
+ goto out;
}
if (!nouveau_bo_allocated(nvbo)) {
ret = nouveau_bo_ualloc(nvbo);
if (ret)
- return ret;
+ goto out;
}
}
@@ -439,19 +445,22 @@ nouveau_bo_map_range(struct nouveau_bo *bo, uint32_t delta, uint32_t size,
} else {
ret = nouveau_bo_kmap(nvbo);
if (ret)
- return ret;
+ goto out;
if (!(flags & NOUVEAU_BO_NOSYNC)) {
ret =...