]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
drm/vc4: Fix leak of the file_priv that stored the perfmon.
authorEric Anholt <eric@anholt.net>
Mon, 9 Apr 2018 20:58:13 +0000 (13:58 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 30 May 2018 18:57:09 +0000 (11:57 -0700)
Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 65101d8c9108 ("drm/vc4: Expose performance counters to userspace")
Link: https://patchwork.freedesktop.org/patch/msgid/20180409205813.7077-1-eric@anholt.net
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/gpu/drm/vc4/vc4_drv.c

index d9b8b701d2cec23b5a157eb6170600c1c15d489f..466d0a27b41510085a93b4119bb737d33b8af1a0 100644 (file)
@@ -130,6 +130,7 @@ static void vc4_close(struct drm_device *dev, struct drm_file *file)
        struct vc4_file *vc4file = file->driver_priv;
 
        vc4_perfmon_close_file(vc4file);
+       kfree(vc4file);
 }
 
 static const struct vm_operations_struct vc4_vm_ops = {