Re: [PATCH drm-misc-next] drm/nouveau: fence: fix undefined fence state after emit

2023-08-29 Thread Dave Airlie
On Wed, 30 Aug 2023 at 08:38, Danilo Krummrich wrote: > > nouveau_fence_emit() can fail before and after initializing the > dma-fence and hence before and after initializing the dma-fence' kref. > > In order to avoid nouveau_fence_emit() potentially failing before > dma-fence initialization pass t

[PATCH drm-misc-next] drm/nouveau: fence: fix undefined fence state after emit

2023-08-29 Thread Danilo Krummrich
nouveau_fence_emit() can fail before and after initializing the dma-fence and hence before and after initializing the dma-fence' kref. In order to avoid nouveau_fence_emit() potentially failing before dma-fence initialization pass the channel to nouveau_fence_new() already and perform the required