drm/i915: use after free on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 19 Jul 2013 05:46:27 +0000 (08:46 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Jul 2013 06:58:42 +0000 (08:58 +0200)
commit6286ef9b56bfc5d4f3f06ef5488e41da4480dc85
treefc2ee8f47223de7f9e9148579d518af33ed01bc2
parentdb473b36d4a2eb02c65aefca11578698b3699fe0
drm/i915: use after free on error path

i915_gem_vma_destroy() frees its argument so we have to move the
drm_mm_remove_node() call up a few lines.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c