aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2013-09-17 14:21:15 +1000
committerDave Airlie <[email protected]>2013-09-19 11:48:30 +1000
commit182b17c8dc4e83aab000ce86587b6810e515da87 (patch)
tree64962eec5002e424d812cd9564e549daf801c03a /tools/perf/util/scripting-engines/trace-event-python.c
parent4f7d1bc973ec71dfeeb951765cafe1ff3a63243e (diff)
drm/ttm: fix the tt_populated check in ttm_tt_destroy()
After a vmalloc failure in ttm_dma_tt_alloc_page_directory(), ttm_dma_tt_init() will call ttm_tt_destroy() to cleanup, and end up inside the driver's unpopulate() hook when populate() has never yet been called. On nouveau, the first issue to be hit because of this is that dma_address[] may be a NULL pointer. After working around this, ttm_pool_unpopulate() may potentially hit the same issue with the pages[] array. It seems to make more sense to avoid calling unpopulate on already unpopulated TTMs than to add checks to all the implementations. Signed-off-by: Ben Skeggs <[email protected]> Reviewed-by: Thomas Hellstrom <[email protected]> Cc: [email protected] Cc: Jerome Glisse <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions