diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-12-04 09:52:58 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-12 10:44:57 +0100 |
commit | 9ae9ab522094406915c27dc729d3ecef7b44af72 (patch) | |
tree | 2a1885196b61218e8570f7121c44a35bc058f899 /drivers/message | |
parent | 5c015db7d9d2eaecf5223eaad7a05c0e8e180288 (diff) | |
download | op-kernel-dev-9ae9ab522094406915c27dc729d3ecef7b44af72.zip op-kernel-dev-9ae9ab522094406915c27dc729d3ecef7b44af72.tar.gz |
drm/i915: Prevent double unref following alloc failure during execbuffer
Whilst looking up the objects required for an execbuffer, an untimely
allocation failure in creating the vma results in the object being
unreferenced from two lists. The ownership during the lookup is meant to
be moved from the list of objects being looked to the vma, and this
double unreference upon error results in a use-after-free.
Fixes regression from
commit 27173f1f95db5e74ceb35fe9a2f2f348ea11bac9
Author: Ben Widawsky <ben@bwidawsk.net>
Date: Wed Aug 14 11:38:36 2013 +0200
drm/i915: Convert execbuf code to use vmas
Based on the fix by Ben Widawsky.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: stable@vger.kernel.org
[danvet: Bikeshed the crucial comment above the ownership transfer as
discussed on irc.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/message')
0 files changed, 0 insertions, 0 deletions