diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-04 07:52:28 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-04 08:09:19 +0100 |
commit | 4717ca9eec1bb88513fb5cbe62f44348d5bc946c (patch) | |
tree | 1463832dd62918a8be2c51fddd695ceb598b0828 /drivers/gpu/drm/i915/i915_gem_userptr.c | |
parent | aa653a685d816648dd903f76c14a30d8baa23933 (diff) | |
download | linux-4717ca9eec1bb88513fb5cbe62f44348d5bc946c.tar.gz linux-4717ca9eec1bb88513fb5cbe62f44348d5bc946c.tar.bz2 linux-4717ca9eec1bb88513fb5cbe62f44348d5bc946c.zip |
drm/i915: Kill drop_pages()
The drop_pages() function is a dangerous trap in that it can release the
passed in object pointer and so unless the caller is aware, it can
easily trick us into using the stale object afterwards. Move it into its
solitary callsite where we know it is safe.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470293567-10811-9-git-send-email-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_userptr.c')
0 files changed, 0 insertions, 0 deletions