From: Eric Anholt Date: Mon, 9 Apr 2018 20:58:13 +0000 (-0700) Subject: drm/vc4: Fix leak of the file_priv that stored the perfmon. X-Git-Tag: Ubuntu-5.0.0-8.9~2248^2~1^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f619794d716c0615241b73a0a5e78dbc8442de7b;p=mirror_ubuntu-disco-kernel.git drm/vc4: Fix leak of the file_priv that stored the perfmon. Signed-off-by: Eric Anholt 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 --- diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index d9b8b701d2ce..466d0a27b415 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -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 = {