[PATCH v2] drm/prime: fix drm_prime_gem_destroy comment

Danilo Krummrich dakr at kernel.org
Fri Mar 28 11:01:37 UTC 2025


On Wed, Mar 26, 2025 at 01:10:58PM +0000, Chris Bainbridge wrote:
> Edit the comments on correct usage of drm_prime_gem_destroy to note
> that, if using TTM, drm_prime_gem_destroy must be called in the
> ttm_buffer_object.destroy hook, to avoid the dma_buf being freed leaving
> a dangling pointer which will be later dereferenced by
> ttm_bo_delayed_delete.
> 
> Signed-off-by: Chris Bainbridge <chris.bainbridge at gmail.com>
> Suggested-by: Christian König <christian.koenig at amd.com>

Can you please send new version of patches as a new mail thread (not in reply to
previous versions) please?

Otherwise,

	Reviewed-by: Danilo Krummrich <dakr at kernel.org>

@Christian, I assume you will pick this one up?


More information about the Nouveau mailing list