Skip to content

Commit

Permalink
drm/vc4: Fix leak of the file_priv that stored the perfmon.
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 65101d8 ("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>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
  • Loading branch information
Eric Anholt authored and Maarten Lankhorst committed May 15, 2018
1 parent 7f6df44 commit 72cb0d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/vc4/vc4_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 72cb0d8

Please sign in to comment.