diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-08-19 15:05:58 +0300 |
---|---|---|
committer | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2017-08-22 15:59:40 +0300 |
commit | d0a133f7f5bc3583e460ba6bb54474a50ada5201 (patch) | |
tree | 5db1a6950a7a557a233b3b711ef1513a9479d294 /.cocciconfig | |
parent | b7f08c89a00ab97be599c9b07b93b24f588e4ac4 (diff) | |
download | linux-d0a133f7f5bc3583e460ba6bb54474a50ada5201.tar.xz |
drm: Release driver tracking before making the object available again
This is the same bug as we fixed in commit f6cd7daecff5 ("drm: Release
driver references to handle before making it available again"), but now
the exposure is via the PRIME lookup tables. If we remove the
object/handle from the PRIME lut, then a new request for the same
object/fd will generate a new handle, thus for a short window that
object is known to userspace by two different handles. Fix this by
releasing the driver tracking before PRIME.
Fixes: 0ff926c7d4f0 ("drm/prime: add exported buffers to current fprivs
imported buffer list (v2)")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Thierry Reding <treding@nvidia.com>
Cc: stable@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170819120558.6465-1-chris@chris-wilson.co.uk
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions