summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/gem.c
diff options
context:
space:
mode:
authorDmitry Osipenko2017-08-11 19:54:56 +0200
committerThierry Reding2017-08-17 17:57:18 +0200
commitec73c4cfe7de6229e49989f7d7754a7039cd5c28 (patch)
treefd877987480f0f64a6dfdff08734d3451b878da5 /drivers/gpu/drm/tegra/gem.c
parentdrm/tegra: gem: Implement mmap() for PRIME buffers (diff)
downloadkernel-qcow2-linux-ec73c4cfe7de6229e49989f7d7754a7039cd5c28.tar.gz
kernel-qcow2-linux-ec73c4cfe7de6229e49989f7d7754a7039cd5c28.tar.xz
kernel-qcow2-linux-ec73c4cfe7de6229e49989f7d7754a7039cd5c28.zip
drm/tegra: Prevent BOs from being freed during job submission
Since DRM IOCTL's are lockless, there is a chance that BOs could be released while a job submission is in progress. To avoid that, keep the GEM reference until the job has been pinned, part of which will be to take another reference. v2: remove redundant check and avoid memory leak Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/gem.c')
0 files changed, 0 insertions, 0 deletions