]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/ttm: fix ttm_bo_add_ttm(user) failure path
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 22 Aug 2011 21:17:57 +0000 (21:17 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 23 Aug 2011 08:34:18 +0000 (09:34 +0100)
commit7c4c3960dff109bc5db4c35da481c212dadb5eb5
tree30e6dcabe064a1c893fb2721224b7eefffa90419
parentba95c45a78d57ac05bf45d81b92a6ec4d299695d
drm/ttm: fix ttm_bo_add_ttm(user) failure path

ttm_tt_destroy kfrees passed object, so we need to nullify
a reference to it.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: stable@kernel.org
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c