]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/nouveau: fix nv84 fence context leak
authorLucas Stach <dev@lynxeye.de>
Tue, 25 Oct 2016 19:55:12 +0000 (21:55 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:37 +0000 (14:04 +1000)
uevent based fences hold a reference to the fence context,
just like the legacy ones. So they need to drop this reference
in the same way.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fence.c

index e9529ee6bc2373841496aef53c07947354f2c1b6..f2f348f0160c845d628cfdb0fa85e76cf4f4f490 100644 (file)
@@ -586,5 +586,5 @@ static const struct dma_fence_ops nouveau_fence_ops_uevent = {
        .enable_signaling = nouveau_fence_enable_signaling,
        .signaled = nouveau_fence_is_signaled,
        .wait = dma_fence_default_wait,
-       .release = NULL
+       .release = nouveau_fence_release
 };