drm/ttm: delay freeing of old node during move_memcpy until after iounmap
authorBen Skeggs <bskeggs@redhat.com>
Thu, 16 Dec 2010 04:47:46 +0000 (14:47 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Dec 2010 04:47:46 +0000 (14:47 +1000)
commitb921bae2eedc806b118a03d986cf0be9ffd3af40
treee6df7453e393d7425f926064e3da1fb1489dad86
parent99ee7fac189893c90145a22b86bbcfdc98f69a9c
drm/ttm: delay freeing of old node during move_memcpy until after iounmap

Drivers using their own implementation of io_mem_reserve/io_mem_free are
likely to store the tracking information for the map in mem.mm_node, so
it can't be freed while still mapped.

Signed-off-by: Ben Skeggs<bskeggs@redhat.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo_util.c