We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91b646a commit 6e2c805Copy full SHA for 6e2c805
drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -144,6 +144,9 @@ nouveau_bo_del_ttm(struct ttm_buffer_object *bo)
144
nouveau_bo_del_io_reserve_lru(bo);
145
nv10_bo_put_tile_region(dev, nvbo->tile, NULL);
146
147
+ if (bo->base.import_attach)
148
+ drm_prime_gem_destroy(&bo->base, bo->sg);
149
+
150
/*
151
* If nouveau_bo_new() allocated this buffer, the GEM object was never
152
* initialized, so don't attempt to release it.
drivers/gpu/drm/nouveau/nouveau_gem.c
@@ -87,9 +87,6 @@ nouveau_gem_object_del(struct drm_gem_object *gem)
87
return;
88
}
89
90
- if (gem->import_attach)
91
- drm_prime_gem_destroy(gem, nvbo->bo.sg);
92
-
93
ttm_bo_put(&nvbo->bo);
94
95
pm_runtime_mark_last_busy(dev);
0 commit comments