]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Aug 2011 21:33:02 +0000 (14:33 -0700)
commitaf0f7f669e9cb671422111246d71c37f5d18252c
treef76ec0cc222ab8bd2a8d6a65147b0eadc073bfbb
parent9792fdb75682aeb0d23365adf8bc4e2d7a8cb97e
drm/ttm: fix ttm_bo_add_ttm(user) failure path

commit 7c4c3960dff109bc5db4c35da481c212dadb5eb5 upstream.

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

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/ttm/ttm_bo.c