aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-06-08 01:52:48 -0400
committerDave Airlie <airlied@redhat.com>2018-06-08 01:52:54 -0400
commit68a14137fa68b798766c43b25d3e4de5e8d27a0f (patch)
tree2d6fad0156fcb6dedf416a799eae9919d2de8731
parent8c7eac58775e55be79201ed285a822b5d0132bef (diff)
parentfbecef131676c1d18e8e6b42c04e10dc49725e96 (diff)
Merge tag 'drm-misc-next-fixes-2018-05-31' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
drm-misc-next-fixes for v4.18: Driver changes: - Plug small memory leak in vc4. (anholt) - Depend on MMU in v3d. (arnd) Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/12faab25-e809-e73c-409c-5e9c08aa351c@linux.intel.com
-rw-r--r--drivers/gpu/drm/v3d/Kconfig1
-rw-r--r--drivers/gpu/drm/vc4/vc4_drv.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/v3d/Kconfig b/drivers/gpu/drm/v3d/Kconfig
index a0c0259355bd..1552bf552c94 100644
--- a/drivers/gpu/drm/v3d/Kconfig
+++ b/drivers/gpu/drm/v3d/Kconfig
@@ -3,6 +3,7 @@ config DRM_V3D
3 depends on ARCH_BCM || ARCH_BCMSTB || COMPILE_TEST 3 depends on ARCH_BCM || ARCH_BCMSTB || COMPILE_TEST
4 depends on DRM 4 depends on DRM
5 depends on COMMON_CLK 5 depends on COMMON_CLK
6 depends on MMU
6 select DRM_SCHED 7 select DRM_SCHED
7 help 8 help
8 Choose this option if you have a system that has a Broadcom 9 Choose this option if you have a system that has a Broadcom
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)
130 struct vc4_file *vc4file = file->driver_priv; 130 struct vc4_file *vc4file = file->driver_priv;
131 131
132 vc4_perfmon_close_file(vc4file); 132 vc4_perfmon_close_file(vc4file);
133 kfree(vc4file);
133} 134}
134 135
135static const struct vm_operations_struct vc4_vm_ops = { 136static const struct vm_operations_struct vc4_vm_ops = {