6f65d975ed
Author: Dave Airlie <airlied@gmail.com> Date: Wed Jan 16 14:25:44 2013 +1000 ttm: don't destroy old mm_node on memcpy failure When we are using memcpy to move objects around, and we fail to memcpy due to lack of memory to populate or failure to finish the copy, we don't want to destroy the mm_node that has been copied into old_copy. While working on a new kms driver that uses memcpy, if I overallocated bo's up to the memory limits, and eviction failed, then machine would oops soon after due to having an active bo with an already freed drm_mm embedded in it, freeing it a second time didn't end well. Reviewed-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Approved by: kib@ |
||
---|---|---|
.. | ||
ttm_agp_backend.c | ||
ttm_bo_api.h | ||
ttm_bo_driver.h | ||
ttm_bo_manager.c | ||
ttm_bo_util.c | ||
ttm_bo_vm.c | ||
ttm_bo.c | ||
ttm_execbuf_util.c | ||
ttm_execbuf_util.h | ||
ttm_lock.c | ||
ttm_lock.h | ||
ttm_memory.c | ||
ttm_memory.h | ||
ttm_module.h | ||
ttm_object.c | ||
ttm_object.h | ||
ttm_page_alloc_dma.c | ||
ttm_page_alloc.c | ||
ttm_page_alloc.h | ||
ttm_placement.h | ||
ttm_tt.c |