commit | ec73c4cfe7de6229e49989f7d7754a7039cd5c28 | [log] [tgz] |
---|---|---|
author | Dmitry Osipenko <digetx@gmail.com> | Fri Aug 11 19:54:56 2017 +0200 |
committer | Thierry Reding <treding@nvidia.com> | Thu Aug 17 17:57:18 2017 +0200 |
tree | fd877987480f0f64a6dfdff08734d3451b878da5 | |
parent | a8bc8c6510d64b759644647a03f8aec55056bded [diff] |
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>