diff options
author | Eric Anholt <[email protected]> | 2018-04-09 13:58:13 -0700 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2018-05-15 13:25:33 +0200 |
commit | 72cb0d893343cd33e6ab62cf26f2625d5d3532c9 (patch) | |
tree | 511e8ccd49a8f397956c335dacbd1ec7acc8c43e | |
parent | 7f6df440b8623c441c42d070bf592e2d2c1fa9bb (diff) |
drm/vc4: Fix leak of the file_priv that stored the perfmon.
Signed-off-by: Eric Anholt <[email protected]>
Fixes: 65101d8c9108 ("drm/vc4: Expose performance counters to userspace")
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Boris Brezillon <[email protected]>
Signed-off-by: Maarten Lankhorst <[email protected]>
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index 94b99c90425a..7c95ed5c5cac 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 = { |