summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panfrost/panfrost_drv.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-02-14 03:52:49 +0100
committerDave Airlie <airlied@redhat.com>2020-02-14 03:53:00 +0100
commit984f0103fcd153363f77eb6dc68ab6caf8a5a779 (patch)
tree976d9a14463ffa6f009d09879b83dc2a03d8dc9e /drivers/gpu/drm/panfrost/panfrost_drv.c
parentLinux 5.6-rc1 (diff)
parentdrm/panfrost: Make sure the shrinker does not reclaim referenced BOs (diff)
downloadlinux-984f0103fcd153363f77eb6dc68ab6caf8a5a779.tar.xz
linux-984f0103fcd153363f77eb6dc68ab6caf8a5a779.zip
Merge tag 'drm-misc-fixes-2020-02-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
Fixes for v5.6: - Revert allow_fb_modifiers in sun4i, as it causes a regression for DE2 and DE3. - Fix null pointer deref in drm_dp_mst_process_up_req(). Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/672810c3-4212-0a46-337b-2cb855573fd2@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/panfrost/panfrost_drv.c')
-rw-r--r--drivers/gpu/drm/panfrost/panfrost_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c
index 6da59f476aba..b7a618db3ee2 100644
--- a/drivers/gpu/drm/panfrost/panfrost_drv.c
+++ b/drivers/gpu/drm/panfrost/panfrost_drv.c
@@ -166,6 +166,7 @@ panfrost_lookup_bos(struct drm_device *dev,
break;
}
+ atomic_inc(&bo->gpu_usecount);
job->mappings[i] = mapping;
}