OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f6df44
)
drm/vc4: Fix leak of the file_priv that stored the perfmon.
author
Eric Anholt
<eric@anholt.net>
Mon, 9 Apr 2018 20:58:13 +0000
(13:58 -0700)
committer
Maarten Lankhorst
<maarten.lankhorst@linux.intel.com>
Tue, 15 May 2018 11:25:33 +0000
(13:25 +0200)
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>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/vc4/vc4_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vc4/vc4_drv.c
b/drivers/gpu/drm/vc4/vc4_drv.c
index
94b99c9
..
7c95ed5
100644
(file)
--- 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 = {