aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAlexandre Courbot <[email protected]>2015-03-10 15:46:08 +0900
committerBen Skeggs <[email protected]>2015-04-14 17:00:49 +1000
commitdf16896b866a056da3c275cf416f6f4cc47934bd (patch)
tree0de2d391eee6fc2ade05bdaeedbdcfdb9558a7d6 /tools/perf/scripts/python/bin
parentb03eaa4d3428ebbc5e32e3595be6027e7d99942b (diff)
drm/nouveau/instmem/gk20a: fix crash during error path
If a memory allocation fails when using the DMA allocator, gk20a_instobj_dtor_dma() will be called on the failed instmem object. At this time, node->handle might not be NULL despite the call to dma_alloc_attrs() having failed. node->cpuaddr is the right member to check for such a failure, so use it instead. Reported-by: Vince Hsu <[email protected]> Signed-off-by: Alexandre Courbot <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions