aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYisheng Xie <[email protected]>2018-02-12 18:43:09 +0800
committerGreg Kroah-Hartman <[email protected]>2018-02-16 17:29:07 +0100
commitfa976e5e9e5dcd9051345d9625044e755e991569 (patch)
treeb86034432abea8c7594bc6695895b9a336cf5c9c /tools/perf/scripts/python
parentf3b0b012b46603c43180962ee5060a4eadb5e8db (diff)
staging: android: ion: Avoid NULL point in error path
If we failed to create debugfs for ion at ion_device_create, the debug_root of ion_device will be NULL, and then when try to create debug file for shrinker of heap it will be create on the top of debugfs. If we also failed to create this the debug file, it call dentry_path to found the path of debug_root, then a NULL point will occur. Fix this by avoiding call dentry_path, but show the debug name only when failed to create debug file for shrinker. Acked-by: Laura Abbott <[email protected]> Signed-off-by: Yisheng Xie <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions