ttm: on move memory failure don't leave a node dangling
authorDave Airlie <airlied@gmail.com>
Wed, 16 Jan 2013 05:58:34 +0000 (15:58 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 21 Jan 2013 03:45:23 +0000 (13:45 +1000)
commit014b34409fb2015f63663b6cafdf557fdf289628
treefd30b4512a1f2a992c03bcf808ead98f4d1b21fa
parent630541863b29f88c7ab34e647758344e4cd1eafd
ttm: on move memory failure don't leave a node dangling

if we have a move notify callback, when moving fails, we call move notify
the opposite way around, however this ends up with *mem containing the mm_node
from the bo, which means we double free it. This is a follow on to the previous
fix.

Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c